Exemplo n.º 1
0
 public TestHostAndServer(Pipeline pipeline, IEnumerable<IOwinHostService> hostServices = null) {
     _host = BuildHost(hostServices);
     _host.SetApp(pipeline);
 }
Exemplo n.º 2
0
 public TestHostAndServer(MiddlewareFunc middleware, AppFunc next = null, IEnumerable<IOwinHostService> hostServices = null) {
     _host = BuildHost(hostServices);
     _host.SetApp(environment => middleware(environment, next ?? Pipeline.ReturnDone));
 }
Exemplo n.º 3
0
 public TestHostAndServer(AppFunc app, IEnumerable<IOwinHostService> hostServices = null) {
     _host = BuildHost(hostServices);
     _host.SetApp(app);
 }
 public TestHostAndServer(Pipeline pipeline, IEnumerable <IOwinHostService> hostServices = null)
 {
     _host = BuildHost(hostServices);
     _host.SetApp(pipeline);
 }
 public TestHostAndServer(MiddlewareFunc middleware, AppFunc next = null, IEnumerable <IOwinHostService> hostServices = null)
 {
     _host = BuildHost(hostServices);
     _host.SetApp(environment => middleware(environment, next ?? Pipeline.ReturnDone));
 }
 public TestHostAndServer(AppFunc app, IEnumerable <IOwinHostService> hostServices = null)
 {
     _host = BuildHost(hostServices);
     _host.SetApp(app);
 }