public ConsoleAppEngine(ILogger <ConsoleAppEngine> logger, IServiceProvider provider, IConsoleAppInterceptor interceptor, CancellationToken cancellationToken)
 {
     this.logger            = logger;
     this.provider          = provider;
     this.interceptor       = interceptor;
     this.cancellationToken = cancellationToken;
 }
Exemple #2
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);
 }
Exemple #3
0
 public ConsoleAppEngineService(IHostApplicationLifetime appLifetime, Type type, MethodInfo?methodInfo, string[] args, ILogger <ConsoleAppEngine> logger, IServiceProvider provider)
 {
     this.args                    = args;
     this.type                    = type;
     this.methodInfo              = methodInfo;
     this.appLifetime             = appLifetime;
     this.scope                   = provider.CreateScope();
     this.logger                  = logger;
     this.interceptor             = (provider.GetService(typeof(IConsoleAppInterceptor)) as IConsoleAppInterceptor) ?? NullConsoleAppInterceptor.Default;
     this.cancellationTokenSource = new CancellationTokenSource();
 }
Exemple #4
0
 public WebHostingInterceptor(IConsoleAppInterceptor innerInterceptor)
 {
     this.innerInterceptor = innerInterceptor;
 }