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)); }
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)); }