[Modify] Edit it

This commit is contained in:
sta 2016-11-22 16:54:13 +09:00
parent e4542bee97
commit d13d4c8c79

View File

@ -2792,20 +2792,29 @@ namespace WebSocketSharp
} }
/// <summary> /// <summary>
/// Sends the specified <paramref name="file"/> as binary data asynchronously using /// Sends the specified <paramref name="file"/> as the binary data
/// the WebSocket connection. /// asynchronously using the WebSocket connection.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This method doesn't wait for the send to be complete. /// This method does not wait for the send to be complete.
/// </remarks> /// </remarks>
/// <param name="file"> /// <param name="file">
/// A <see cref="FileInfo"/> that represents the file to send. /// A <see cref="FileInfo"/> that represents the file to send.
/// </param> /// </param>
/// <param name="completed"> /// <param name="completed">
/// An <c>Action&lt;bool&gt;</c> delegate that references the method(s) called when /// An <c>Action&lt;bool&gt;</c> delegate that invokes the method called when
/// the send is complete. A <see cref="bool"/> passed to this delegate is <c>true</c> /// the send is complete. A <see cref="bool"/> passed to this delegate will be
/// if the send is complete successfully. /// <c>true</c> if the send has done with no error.
/// </param> /// </param>
/// <exception cref="InvalidOperationException">
/// The current state of the connection is not Open.
/// </exception>
/// <exception cref="ArgumentNullException">
/// <paramref name="file"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentException">
/// <paramref name="file"/> cannot be opened to read.
/// </exception>
public void SendAsync (FileInfo file, Action<bool> completed) public void SendAsync (FileInfo file, Action<bool> completed)
{ {
if (_readyState != WebSocketState.Open) { if (_readyState != WebSocketState.Open) {