@@ -2693,37 +2693,37 @@ public void Send (byte[] data)
26932693 }
26942694
26952695 /// <summary>
2696- /// Sends the specified <paramref name="file "/> as the binary data using
2696+ /// Sends the specified <paramref name="fileInfo "/> as the binary data using
26972697 /// the WebSocket connection.
26982698 /// </summary>
2699- /// <param name="file ">
2699+ /// <param name="fileInfo ">
27002700 /// A <see cref="FileInfo"/> that represents the file to send.
27012701 /// </param>
27022702 /// <exception cref="InvalidOperationException">
27032703 /// The current state of the connection is not Open.
27042704 /// </exception>
27052705 /// <exception cref="ArgumentNullException">
2706- /// <paramref name="file "/> is <see langword="null"/>.
2706+ /// <paramref name="fileInfo "/> is <see langword="null"/>.
27072707 /// </exception>
27082708 /// <exception cref="ArgumentException">
2709- /// <paramref name="file "/> cannot be opened to read.
2709+ /// <paramref name="fileInfo "/> cannot be opened to read.
27102710 /// </exception>
2711- public void Send ( FileInfo file )
2711+ public void Send ( FileInfo fileInfo )
27122712 {
27132713 if ( _readyState != WebSocketState . Open ) {
27142714 var msg = "The current state of the connection is not Open." ;
27152715 throw new InvalidOperationException ( msg ) ;
27162716 }
27172717
2718- if ( file == null )
2719- throw new ArgumentNullException ( "file " ) ;
2718+ if ( fileInfo == null )
2719+ throw new ArgumentNullException ( "fileInfo " ) ;
27202720
2721- if ( ! file . Exists )
2722- throw new ArgumentException ( "The file does not exist." , "file " ) ;
2721+ if ( ! fileInfo . Exists )
2722+ throw new ArgumentException ( "The file does not exist." , "fileInfo " ) ;
27232723
27242724 FileStream stream ;
2725- if ( ! file . TryOpenRead ( out stream ) )
2726- throw new ArgumentException ( "Cannot be opened to read ." , "file " ) ;
2725+ if ( ! fileInfo . TryOpenRead ( out stream ) )
2726+ throw new ArgumentException ( "The file could not be opened ." , "fileInfo " ) ;
27272727
27282728 send ( Opcode . Binary , stream ) ;
27292729 }
0 commit comments