Пример #1
0
 public ConsoleAppFrameworkMiddleware(RequestDelegate next, ILogger <ConsoleAppEngine> logger, IConsoleAppInterceptor interceptor, IServiceProvider provider, TargetConsoleAppTypeCollection targetTypes)
 {
     this.next         = next;
     this.logger       = logger;
     this.interceptor  = interceptor;
     this.provider     = provider;
     this.methodLookup = BuildMethodLookup(targetTypes);
 }
Пример #2
0
 public ConsoleAppFrameworkSwaggerMiddleware(RequestDelegate next, TargetConsoleAppTypeCollection targetTypes, SwaggerOptions options)
 {
     this.next     = next;
     this.handlers = targetTypes.SelectMany(x => x.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)).ToArray();
     this.options  = options;
 }