Пример #1
0
 public TestHostAndServer(Pipeline pipeline, IEnumerable<IOwinHostService> hostServices = null) {
     _host = BuildHost(hostServices);
     _host.SetApp(pipeline);
 }
Пример #2
0
 public TestHostAndServer(MiddlewareFunc middleware, AppFunc next = null, IEnumerable<IOwinHostService> hostServices = null) {
     _host = BuildHost(hostServices);
     _host.SetApp(environment => middleware(environment, next ?? Pipeline.ReturnDone));
 }
Пример #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);
 }