public DefaultStaticFilesFactory(IOptions <ReusableMvcOptions> options,
                                  IRazorViewEngineFileProviderAccessor fileProviderAccessor,
                                  PipelineDecisionTree pipelineDecisionTree, IHostingEnvironment env,
                                  IActionContextAccessor actionContextAccessor)
 {
     _options = options;
     _pipelineDecisionTree  = pipelineDecisionTree;
     _actionContextAccessor = actionContextAccessor;
     _minifySuffix          = env.IsDevelopment() ? null : ".min";
     _fileProvider          = fileProviderAccessor.FileProvider;
     _env = env;
 }
 public MultipipelineMiddleware(RequestDelegate next, IApplicationBuilder app, ILoggerFactory loggerFactory,
                                IOptions <TOptions> options, PipelineDecisionTree decisionTree,
                                PipelineCollectionAccessor pipelineCollectionAccessor,
                                Action <IApplicationBuilder> defaultPipelineConfiguration)
 {
     _next         = next;
     _logger       = loggerFactory.CreateLogger(nameof(MultipipelineMiddleware <TOptions>));
     _options      = options;
     _decisionTree = decisionTree;
     _app          = app;
     _pipelineCollectionAccessor   = pipelineCollectionAccessor;
     _defaultPipelineConfiguration = defaultPipelineConfiguration;
 }
Пример #3
0
 public DefaultReusableRouteHandler(MvcRouteHandler target, IActionDescriptorCollectionProvider actionProvider,
                                    PipelineDecisionTree pipelineDecisionTree, IOptions <ReusableMvcOptions> options)
 {
     _target = target;
     _pipelineDecisionTree = pipelineDecisionTree;
     _options = options;
     _controllerActionUris =
         actionProvider.ActionDescriptors.Items.Cast <ControllerActionDescriptor>()
         .GroupBy(t => t.ControllerTypeInfo.FullName)
         .ToDictionary(t => t.Key,
                       t => t.Select(x => (x.AttributeRouteInfo != null
                             ? x.AttributeRouteInfo.Template
                             : $"{t.Key}/{x.ActionName}").Trim('/')), StringComparer.OrdinalIgnoreCase);
 }
 /// <inheritdoc />
 public DefaultResuableViewLocationExpander(IOptions <ReusableMvcOptions> options,
                                            PipelineDecisionTree pipelineDecisionTree)
 {
     _options = options;
     _pipelineDecisionTree = pipelineDecisionTree;
 }