Ejemplo n.º 1
0
 public BatchEngineMiddleware(RequestDelegate next, ILogger <BatchEngine> logger, IBatchInterceptor interceptor, IServiceProvider provider, TargetBatchTypeCollection targetTypes)
 {
     this.next         = next;
     this.logger       = logger;
     this.interceptor  = interceptor;
     this.provider     = provider;
     this.methodLookup = BuildMethodLookup(targetTypes);
 }
Ejemplo n.º 2
0
 public BatchEngineSwaggerMiddleware(RequestDelegate next, TargetBatchTypeCollection targetTypes, SwaggerOptions options)
 {
     this.next     = next;
     this.handlers = targetTypes.SelectMany(x => x.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)).ToArray();
     this.options  = options;
 }