public InMemoryCommunicationContext() { ApplicationBaseUri = new Uri("http://localhost/"); Request = new InMemoryRequest(); Response = new InMemoryResponse(); ServerErrors = new ServerErrorList(); PipelineData = new PipelineData(); }
public AspNetCommunicationContext(ILogger logger, HttpContext context, AspNetRequest request, AspNetResponse response) { Log = logger; NativeContext = context; ServerErrors = new ServerErrorList { Log = logger }; PipelineData = new PipelineData(); Request = request; Response = response; }
public OwinCommunicationContext(IOwinContext nativeContext,ILogger logger) { PipelineData = new PipelineData(); _nativeContext = nativeContext; Request = new OwinRequest(nativeContext.Request); Response = new OwinResponse(nativeContext); ServerErrors = new ServerErrorList { Log = logger }; User = nativeContext.Request.User; }
public OwinCommunicationContext(IOwinContext nativeContext, ILogger logger) { PipelineData = new PipelineData(); _nativeContext = nativeContext; Request = new OwinRequest(nativeContext.Request); Response = new OwinResponse(nativeContext); ServerErrors = new ServerErrorList { Log = logger }; User = nativeContext.Request.User; }
public OwinCommunicationContext(IOwinContext nativeContext, ILogger logger) { PipelineData = new PipelineData(nativeContext.Environment); _nativeContext = nativeContext; Request = new OwinRequest(nativeContext.Request); Response = new OwinResponse(nativeContext); ServerErrors = new ServerErrorList { Log = logger }; _appBaseRelative = nativeContext.Request.PathBase; }
public OwinCommunicationContext(IOwinContext nativeContext, ILogger logger) { PipelineData = new PipelineData(); foreach (var kv in nativeContext.Environment) { PipelineData.Add(kv.Key, kv.Value); } _nativeContext = nativeContext; Request = new OwinRequest(nativeContext.Request); Response = new OwinResponse(nativeContext); ServerErrors = new ServerErrorList { Log = logger }; _appBaseRelative = nativeContext.Request.PathBase; }
public HttpListenerCommunicationContext(IHost host, HttpListenerContext nativeContext, ILogger logger) { ServerErrors = new ServerErrorList { Log = logger }; PipelineData = new PipelineData { Owin = { SslLoadClientCertAsync = LoadClientCert } }; _host = host; _nativeContext = nativeContext; User = nativeContext.User; Request = new HttpListenerRequest(this, nativeContext.Request); Response = new HttpListenerResponse(this, nativeContext.Response); }