public ShellRoute(RouteBase route, ShellSettings shellSettings, IWorkContextAccessor workContextAccessor,
                          IRunningShellTable runningShellTable, Func <IDictionary <string, object>, Task> pipeline)
        {
            _route               = route;
            _shellSettings       = shellSettings;
            _runningShellTable   = runningShellTable;
            _pipeline            = pipeline;
            _workContextAccessor = workContextAccessor;
            if (!string.IsNullOrEmpty(_shellSettings.RequestUrlPrefix))
            {
                _urlPrefix = new UrlPrefix(_shellSettings.RequestUrlPrefix);
            }

            Area = route.GetAreaName();
        }
Exemple #2
0
 public UrlPrefixAdjustedHttpContext(HttpContextBase httpContextBase, UrlPrefix prefix)
     : base(httpContextBase)
 {
     _prefix = prefix;
 }
Exemple #3
0
 public AdjustedRequest(HttpRequestBase httpRequestBase, UrlPrefix prefix)
     : base(httpRequestBase)
 {
     _prefix = prefix;
 }