Amqp.TaskExtensions.ReadAsync C# (CSharp) 메소드

ReadAsync() 정적인 개인적인 메소드

static private ReadAsync ( this source, byte buffer, int offset, int count ) : Task
source this
buffer byte
offset int
count int
리턴 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);
        }