public async System.Threading.Tasks.Task <ActionResult> SetupSuccess() { string referer = Request.Headers["Referer"].ToString(); if (referer.EndsWith("/SetupHome/CreateAdmin")) { await WebSetup.RestartAppAsync(); } return(View()); }
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; } }