예제 #1
0
 public static BufferingConsumer Consume(this BodyDelegate del)
 {
     var c = new BufferingConsumer();
     del((data, ct) => c.OnData(data, ct), e => c.OnError(e), () => c.OnEnd());
     return c;
 }