public ConsoleAppEngine(ILogger <ConsoleAppEngine> logger, IServiceProvider provider, IConsoleAppInterceptor interceptor, CancellationToken cancellationToken) { this.logger = logger; this.provider = provider; this.interceptor = interceptor; this.cancellationToken = cancellationToken; }
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); }
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(); }
public WebHostingInterceptor(IConsoleAppInterceptor innerInterceptor) { this.innerInterceptor = innerInterceptor; }