Exemplo n.º 1
0
        public override Task ExecuteResultAsync(ActionContext context)
        {
            var executor = new FileCallbackResultExecutor(
                context.HttpContext.RequestServices.GetRequiredService <ILoggerFactory>());

            return(executor.ExecuteAsync(context, this));
        }
Exemplo n.º 2
0
        public override Task ExecuteResultAsync(ActionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            var executor = new FileCallbackResultExecutor(context.HttpContext.RequestServices.GetRequiredService <ILoggerFactory>());

            return(executor.ExecuteAsync(context, this));
        }
Exemplo n.º 3
0
    public override Task ExecuteResultAsync(ActionContext context)
    {
        if (context == null)
        {
            throw new ArgumentNullException(nameof(context));
        }

        context.HttpContext.Features.Get <IHttpBodyControlFeature>() !.AllowSynchronousIO = true;

        var executor = new FileCallbackResultExecutor(context.HttpContext.RequestServices.GetRequiredService <ILoggerFactory>());

        return(executor.ExecuteAsync(context, this));
    }