コード例 #1
0
 public CustomAspNetRequest(ushort id, BeginRequestMessageBody body)
     : base(id, body)
 {
     //must be the same values used when calling ApplicationHost.CreateApplicationHost
     this.VirtualPath = "/";
     this.PhysicalPath = Path.Combine(Directory.GetCurrentDirectory(), "Root");
 }
コード例 #2
0
        protected Request(ushort id, BeginRequestMessageBody body)
        {
            this.Id = id;
            this.RequestBody = body;
            this.ExitCode = 0;

            this.ParametersStream = new InputStream();
            this.InputStream      = new InputStream();
            this.DataStream       = new InputStream();

            this.OutputStream     = new OutputStream();
            this.ErrorStream      = new OutputStream();

            this.OutputStream.Flushing += new EventHandler<FlushEventArgs>(OutputStreamFlushing);
            this.ErrorStream.Flushing += new EventHandler<FlushEventArgs>(ErrorStreamFlushing);
        }
コード例 #3
0
        protected Request(ushort id, BeginRequestMessageBody body)
        {
            this.Id          = id;
            this.RequestBody = body;
            this.ExitCode    = 0;

            this.ParametersStream = new InputStream();
            this.InputStream      = new InputStream();
            this.DataStream       = new InputStream();

            this.OutputStream = new OutputStream();
            this.ErrorStream  = new OutputStream();

            this.OutputStream.Flushing += new EventHandler <FlushEventArgs>(OutputStreamFlushing);
            this.ErrorStream.Flushing  += new EventHandler <FlushEventArgs>(ErrorStreamFlushing);
        }
コード例 #4
0
ファイル: FastCgiChannel.cs プロジェクト: EnergonV/BestCS
 protected abstract Request CreateRequest(ushort requestId, BeginRequestMessageBody body);
コード例 #5
0
 public AspNetRequest(ushort id, BeginRequestMessageBody body)
     : base(id, body)
 {
     this.Status = String.Empty;
     this.Headers = new NameValueCollection();
 }
コード例 #6
0
ファイル: SimpleRequest.cs プロジェクト: lincuss/sharpfastcgi
 public SimpleRequest(ushort id, BeginRequestMessageBody body)
     : base(id, body)
 {
 }
コード例 #7
0
 protected abstract Request CreateRequest(ushort requestId, BeginRequestMessageBody body);