public FosRequest(Socket sock, Fos.Logging.IServerLogger logger) : base(sock) { Logger = logger; CancellationSource = new CancellationTokenSource(); OwinContext = new OwinContext("1.0", CancellationSource.Token); // Streams stdout = new Fos.Streams.FosStdoutStream(sock); OwinContext.ResponseBody = Stdout; OwinContext.RequestBody = Stdin; }
public FosRequest(Socket sock, Fos.Logging.IServerLogger logger) : base(sock) { Logger = logger; CancellationSource = new CancellationTokenSource(); OwinContext = new OwinContext("1.0", CancellationSource.Token); OwinContext.Add("server.OnSendingHeaders", (Action <Action <object>, object>)RegisterOnSendingHeadersCallback); // Streams stdout = new Fos.Streams.FosStdoutStream(sock); OwinContext.ResponseBody = Stdout; OwinContext.RequestBody = Stdin; }