Пример #1
0
        public async System.Threading.Tasks.Task <ActionResult> SetupSuccess()
        {
            string referer = Request.Headers["Referer"].ToString();

            if (referer.EndsWith("/SetupHome/CreateAdmin"))
            {
                await WebSetup.RestartAppAsync();
            }
            return(View());
        }
Пример #2
0
        public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
        {
            //var factory = context.HttpContext.RequestServices.GetService<ILoggerFactory>();
            // var s = context.HttpContext.Request.Path;
            //var logger = factory.CreateLogger<GlobalActionFilter>();
            await ExcuteFilter(context, next);

            if (!isBuild)
            {
                await WebSetup.BuildAllDynamicActions(_actionProvider, _dynamicChangeTokenProvider);

                isBuild = true;
            }
        }