public async Task RunAsync(Type type, MethodInfo method, string?[] args) { logger.LogTrace("ConsoleAppEngine.Run Start"); var ctx = new ConsoleAppContext(args, DateTime.UtcNow, cancellationToken, logger); await interceptor.OnMethodBeginAsync(ctx); await RunCore(ctx, type, method, args, 1); // 0 is type selector }
public ValueTask OnMethodBeginAsync(ConsoleAppContext context) { return(innerInterceptor.OnMethodBeginAsync(context)); }