예제 #1
0
 /// <summary>
 /// Sends data asynchronous.
 /// </summary>
 /// <param name="buffer">The buffer.</param>
 /// <param name="offset">The offset.</param>
 /// <param name="length">The length.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns></returns>
 private Task SendAsync(byte[] buffer, int offset, int length, CancellationToken cancellationToken)
 {
     return(_tcp.WriteAsync(buffer, offset, length, cancellationToken));
 }