Пример #1
0
 public MenuFilter(INavigationManager navigationManager,
     IWebWorkContextAccessor workContextAccessor,
     IShapeFactory shapeFactory)
 {
     _navigationManager = navigationManager;
     _workContextAccessor = workContextAccessor;
     _shapeFactory = shapeFactory;
 }
Пример #2
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
        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();
        }
Пример #6
0
        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();
        }
Пример #7
0
 /// <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));
 }
Пример #8
0
 public RouteHandler(IWebWorkContextAccessor workContextAccessor, IRouteHandler routeHandler, SessionStateBehavior sessionStateBehavior)
 {
     _workContextAccessor = workContextAccessor;
     _routeHandler = routeHandler;
     _sessionStateBehavior = sessionStateBehavior;
 }
Пример #9
0
 public HttpHandler(IWebWorkContextAccessor workContextAccessor, IHttpHandler httpHandler)
 {
     WorkContextAccessor = workContextAccessor;
     _httpHandler = httpHandler;
 }
Пример #10
0
 public HttpAsyncHandler(IWebWorkContextAccessor containerProvider, IHttpAsyncHandler httpAsyncHandler)
     : base(containerProvider, httpAsyncHandler)
 {
     _httpAsyncHandler = httpAsyncHandler;
 }
Пример #11
0
 public HttpAsyncHandler(IWebWorkContextAccessor containerProvider, IHttpAsyncHandler httpAsyncHandler)
     : base(containerProvider, httpAsyncHandler)
 {
     _httpAsyncHandler = httpAsyncHandler;
 }
Пример #12
0
 public HttpHandler(IWebWorkContextAccessor workContextAccessor, IHttpHandler httpHandler)
 {
     WorkContextAccessor = workContextAccessor;
     _httpHandler        = httpHandler;
 }
Пример #13
0
 public RouteHandler(IWebWorkContextAccessor workContextAccessor, IRouteHandler routeHandler, SessionStateBehavior sessionStateBehavior)
 {
     _workContextAccessor  = workContextAccessor;
     _routeHandler         = routeHandler;
     _sessionStateBehavior = sessionStateBehavior;
 }