示例#1
0
        public ControllerRoutineAnonymousHandlerAsync(
            ControllerBase controllerBase,
            Func <AspRoutineFeature, Func <object>, ComplexRoutineHandlerAsync <TServiceContainer, TUserContext> > getContainerHandler)
        {
            var aspRoutineFeature = AspNetCoreManager.GetAspRoutineFeature(controllerBase);

            this.getContainerHandler = () => getContainerHandler(
                aspRoutineFeature,
                () => AspNetCoreManager.GetRequest(controllerBase.HttpContext.Request));
        }
示例#2
0
        public PageRoutineAnonymousHandlerAsync(
            PageModel pageModel,
            Func <AspRoutineFeature, Func <object>, ComplexRoutineHandlerAsync <TServiceContainer, TUserContext> > getContainerHandler)
        {
            var aspRoutineFeature = AspNetCoreManager.GetAspRoutineFeature(pageModel);

            this.getContainerHandler = () => getContainerHandler(
                aspRoutineFeature,
                () => AspNetCoreManager.GetRequest(pageModel.HttpContext.Request));
        }