예제 #1
0
 public static Func <Stream, Task> Create(string text, Encoding encoding)
 {
     return(stream =>
     {
         var textBody = new TextBody(text, encoding);
         return textBody.Start(stream);
     });
 }
예제 #2
0
 public static Func<Stream, Task> Create(string text, Encoding encoding)
 {
     return stream =>
     {
         var textBody = new TextBody(text, encoding);
         return textBody.Start(stream);
     };
 }
예제 #3
0
파일: TextBody.cs 프로젝트: anurse/gate
 public static BodyDelegate Create(string text, Encoding encoding)
 {
     return (write, end, cancel) =>
     {
         var textBody = new TextBody(text, encoding);
         textBody.Start(write, end, cancel);
     };
 }