public MenuFilter(INavigationManager navigationManager, IWebWorkContextAccessor workContextAccessor, IShapeFactory shapeFactory) { _navigationManager = navigationManager; _workContextAccessor = workContextAccessor; _shapeFactory = shapeFactory; }
public DefaultRoutePublisher(RouteCollection routeCollection, ShellSettings shellSettings, IExtensionManager extensionManager, IWebWorkContextAccessor webWorkContextAccessor, IRunningShellTable runningShellTable, IEnumerable<IRoutePublisherEventHandler> routePublisherEventHandlers) { _routeCollection = routeCollection; _shellSettings = shellSettings; _extensionManager = extensionManager; _webWorkContextAccessor = webWorkContextAccessor; _runningShellTable = runningShellTable; _routePublisherEventHandlers = routePublisherEventHandlers; }
public DefaultRoutePublisher(RouteCollection routeCollection, ShellSettings shellSettings, IExtensionManager extensionManager, IWebWorkContextAccessor webWorkContextAccessor, IRunningShellTable runningShellTable, IEnumerable <IRoutePublisherEventHandler> routePublisherEventHandlers) { _routeCollection = routeCollection; _shellSettings = shellSettings; _extensionManager = extensionManager; _webWorkContextAccessor = webWorkContextAccessor; _runningShellTable = runningShellTable; _routePublisherEventHandlers = routePublisherEventHandlers; }
public ShellRoute(RouteBase route, ShellSettings shellSettings, IWebWorkContextAccessor workContextAccessor, IRunningShellTable runningShellTable) { _route = route; _shellSettings = shellSettings; _runningShellTable = runningShellTable; _workContextAccessor = workContextAccessor; if (!string.IsNullOrEmpty(_shellSettings.GetRequestUrlPrefix())) _urlPrefix = new UrlPrefix(_shellSettings.GetRequestUrlPrefix()); Area = route.GetAreaName(); }
public ShellRoute(RouteBase route, ShellSettings shellSettings, IWebWorkContextAccessor workContextAccessor, IRunningShellTable runningShellTable) { _route = route; _shellSettings = shellSettings; _runningShellTable = runningShellTable; _workContextAccessor = workContextAccessor; if (!string.IsNullOrEmpty(_shellSettings.GetRequestUrlPrefix())) { _urlPrefix = new UrlPrefix(_shellSettings.GetRequestUrlPrefix()); } Area = route.GetAreaName(); }
/// <summary> /// 获取工作上下文。 /// </summary> /// <param name="workContextAccessor">工作上下文访问器。</param> /// <param name="controllerContext">控制器上下文。</param> /// <returns>工作上下文。</returns> public static WorkContext GetWorkContext(this IWebWorkContextAccessor workContextAccessor, ControllerContext controllerContext) { return(workContextAccessor.GetContext(controllerContext.RequestContext.HttpContext)); }
public RouteHandler(IWebWorkContextAccessor workContextAccessor, IRouteHandler routeHandler, SessionStateBehavior sessionStateBehavior) { _workContextAccessor = workContextAccessor; _routeHandler = routeHandler; _sessionStateBehavior = sessionStateBehavior; }
public HttpHandler(IWebWorkContextAccessor workContextAccessor, IHttpHandler httpHandler) { WorkContextAccessor = workContextAccessor; _httpHandler = httpHandler; }
public HttpAsyncHandler(IWebWorkContextAccessor containerProvider, IHttpAsyncHandler httpAsyncHandler) : base(containerProvider, httpAsyncHandler) { _httpAsyncHandler = httpAsyncHandler; }