示例#1
0
 public Startup(RequestDispatcher requestDispatcher) => Dispatcher = requestDispatcher;
示例#2
0
 public RestServiceMiddleware(RequestDelegate next, RequestDispatcher dispatcher)
 {
     Dispatcher = dispatcher;
     _next      = next;
 }
示例#3
0
 public RestProvider()
 {
     requestDispatcher = new RequestDispatcher();
 }
示例#4
0
 public static IApplicationBuilder UseRestServiceProviderMiddleware(this IApplicationBuilder app, RequestDispatcher requestDispatcher) => app.UseMiddleware <RestServiceMiddleware>(requestDispatcher);