static private ReadAsync ( this source, byte buffer, int offset, int count ) : Task |
||
source | this | |
buffer | byte | |
offset | int | |
count | int | |
return | Task |
internal static Task<int> ReadAsync(this System.Net.Security.SslStream source,
byte[] buffer, int offset, int count)
{
return Task.Factory.FromAsync(
(c, s) => source.BeginRead(buffer, offset, count, c, s),
(r) => source.EndRead(r),
null);
}