Esempio n. 1
0
 public ListenerContextHttpInput(HttpRequestContext.ListenerHttpContext listenerHttpContext) : base(listenerHttpContext.Listener, true, listenerHttpContext.listener.IsChannelBindingSupportEnabled)
 {
     this.listenerHttpContext = listenerHttpContext;
     if (this.listenerHttpContext.listenerContext.Request.ContentLength64 == -1L)
     {
         this.preReadBuffer = new byte[1];
         if (this.listenerHttpContext.listenerContext.Request.InputStream.Read(this.preReadBuffer, 0, 1) == 0)
         {
             this.preReadBuffer = null;
         }
     }
 }
Esempio n. 2
0
 public ListenerContextInputStream(HttpRequestContext.ListenerHttpContext listenerHttpContext, byte[] preReadBuffer) : base(new PreReadStream(listenerHttpContext.listenerContext.Request.InputStream, preReadBuffer))
 {
 }
Esempio n. 3
0
 public ListenerContextInputStream(HttpRequestContext.ListenerHttpContext listenerHttpContext) : base(listenerHttpContext.listenerContext.Request.InputStream)
 {
 }
 public ListenerContextHttpInput(HttpRequestContext.ListenerHttpContext listenerHttpContext) : base(listenerHttpContext.Listener, true, listenerHttpContext.listener.IsChannelBindingSupportEnabled)
 {
     this.listenerHttpContext = listenerHttpContext;
     if (this.listenerHttpContext.listenerContext.Request.ContentLength64 == -1L)
     {
         this.preReadBuffer = new byte[1];
         if (this.listenerHttpContext.listenerContext.Request.InputStream.Read(this.preReadBuffer, 0, 1) == 0)
         {
             this.preReadBuffer = null;
         }
     }
 }