[Modify] Edit it
This commit is contained in:
parent
e4542bee97
commit
d13d4c8c79
@ -2792,20 +2792,29 @@ namespace WebSocketSharp
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sends the specified <paramref name="file"/> as binary data asynchronously using
|
||||
/// the WebSocket connection.
|
||||
/// Sends the specified <paramref name="file"/> as the binary data
|
||||
/// asynchronously using the WebSocket connection.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method doesn't wait for the send to be complete.
|
||||
/// This method does not wait for the send to be complete.
|
||||
/// </remarks>
|
||||
/// <param name="file">
|
||||
/// A <see cref="FileInfo"/> that represents the file to send.
|
||||
/// </param>
|
||||
/// <param name="completed">
|
||||
/// An <c>Action<bool></c> delegate that references the method(s) called when
|
||||
/// the send is complete. A <see cref="bool"/> passed to this delegate is <c>true</c>
|
||||
/// if the send is complete successfully.
|
||||
/// An <c>Action<bool></c> delegate that invokes the method called when
|
||||
/// the send is complete. A <see cref="bool"/> passed to this delegate will be
|
||||
/// <c>true</c> if the send has done with no error.
|
||||
/// </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)
|
||||
{
|
||||
if (_readyState != WebSocketState.Open) {
|
||||
|
Loading…
Reference in New Issue
Block a user