public Startup(RequestDispatcher requestDispatcher) => Dispatcher = requestDispatcher;
public RestServiceMiddleware(RequestDelegate next, RequestDispatcher dispatcher) { Dispatcher = dispatcher; _next = next; }
public RestProvider() { requestDispatcher = new RequestDispatcher(); }
public static IApplicationBuilder UseRestServiceProviderMiddleware(this IApplicationBuilder app, RequestDispatcher requestDispatcher) => app.UseMiddleware <RestServiceMiddleware>(requestDispatcher);