コード例 #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
ファイル: GlobalActionFilter.cs プロジェクト: unifare/BizWeb
        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;
            }
        }