예제 #1
0
        protected WriterContinuation(IHttpWriter writer, DoNext doNext)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }

            DoNext = doNext;

            Action = () => {
                Write(writer);
                writer.Flush();
            };
        }
예제 #2
0
 public void Flush()
 {
     _writer.Flush();
 }