Exemple #1
0
 public static ValueTask <Maybe <long> > ReceiveMessageAsync(
     this ITransportChannel channel,
     ArraySegment <byte> buffer)
 {
     return(channel.ReceiveMessageAsync(buffer.Array, buffer.Offset, buffer.Count));
 }
Exemple #2
0
 public static ValueTask <Maybe <long> > ReceiveMessageAsync(
     this ITransportChannel channel,
     byte[] buffer)
 {
     return(channel.ReceiveMessageAsync(buffer, 0, buffer.Length));
 }