示例#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;
 }