Beispiel #1
0
 internal static async Task <int> ReadAsync(this System.Net.Security.SslStream source,
                                            byte[] buffer, int offset, int count)
 {
     return(await Task.Factory.FromAsync(
                (c, s) => source.BeginRead(buffer, offset, count, c, s),
                (r) => source.EndRead(r),
                null).ConfigureAwait(false));
 }