Replaced the SendToAsync (string id, Stream stream, int length, Action<bool> completed) method with the SendToAsync (Stream stream, int length, string id, Action<bool> completed) method

This commit is contained in:
sta 2015-04-21 15:38:10 +09:00
parent d3dd903809
commit 8910c6cced

View File

@ -764,21 +764,21 @@ namespace WebSocketSharp.Server
/// <remarks> /// <remarks>
/// This method doesn't wait for the send to be complete. /// This method doesn't wait for the send to be complete.
/// </remarks> /// </remarks>
/// <param name="id">
/// A <see cref="string"/> that represents the ID of the session to find.
/// </param>
/// <param name="stream"> /// <param name="stream">
/// A <see cref="Stream"/> from which contains the binary data to send. /// A <see cref="Stream"/> from which contains the binary data to send.
/// </param> /// </param>
/// <param name="length"> /// <param name="length">
/// An <see cref="int"/> that represents the number of bytes to send. /// An <see cref="int"/> that represents the number of bytes to send.
/// </param> /// </param>
/// <param name="id">
/// A <see cref="string"/> that represents the ID of the session to find.
/// </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 references the method(s) 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 is <c>true</c>
/// if the send is complete successfully. /// if the send is complete successfully.
/// </param> /// </param>
public void SendToAsync (string id, Stream stream, int length, Action<bool> completed) public void SendToAsync (Stream stream, int length, string id, Action<bool> completed)
{ {
IWebSocketSession session; IWebSocketSession session;
if (TryGetSession (id, out session)) if (TryGetSession (id, out session))