示例#1
0
 public FastcgiRequest GetOrCreateFastcgiRequest(ushort RequestId)
 {
     if (!Requests.ContainsKey(RequestId))
     {
         return(Requests[RequestId] = new FastcgiRequest(this, RequestId));
     }
     return(Requests[RequestId]);
 }
示例#2
0
 public FastcgiRequest GetOrCreateFastcgiRequest(ushort RequestId)
 {
     if (!Requests.ContainsKey(RequestId))
     {
         return Requests[RequestId] = new FastcgiRequest(this, RequestId);
     }
     return Requests[RequestId];
 }
 protected virtual void HandleFascgiRequest(FastcgiRequest FastcgiRequest)
 {
     using (var TextWriter = new StreamWriter(FastcgiRequest.StdoutStream))
     {
         TextWriter.WriteLine("X-Dynamic: C#");
         TextWriter.WriteLine("Content-Type: text/html; charset=utf-8");
         TextWriter.WriteLine("");
         TextWriter.WriteLine("Not Implemented");
     }
 }
		public FascgiResponseOutputStream(FastcgiRequest FastcgiRequest, Fastcgi.PacketType PacketType)
		{
			this.FastcgiRequest = FastcgiRequest;
			this.PacketType = PacketType;
			this.Buffer = new MemoryStream();
		}
示例#5
0
 protected virtual void HandleFascgiRequest(FastcgiRequest FastcgiRequest)
 {
     using (var TextWriter = new StreamWriter(FastcgiRequest.StdoutStream))
     {
         TextWriter.WriteLine("X-Dynamic: C#");
         TextWriter.WriteLine("Content-Type: text/html; charset=utf-8");
         TextWriter.WriteLine("");
         TextWriter.WriteLine("Not Implemented");
     }
 }
 public FascgiResponseOutputStream(FastcgiRequest FastcgiRequest, Fastcgi.PacketType PacketType)
 {
     this.FastcgiRequest = FastcgiRequest;
     this.PacketType     = PacketType;
     this.Buffer         = new MemoryStream();
 }