Beispiel #1
0
        public ResourcePipelineInvoker(
            ILoggerFactory loggerFactory,
            ResourceInspectorSelector selector,
            IHalResourceFactoryMetadata resourceFactory,
            MvcPipeline mvcPipeline)
        {
            this.loggerFactory = loggerFactory
                                 ?? throw new ArgumentNullException(nameof(loggerFactory));

            this.selector = selector
                            ?? throw new ArgumentNullException(nameof(selector));

            this.resourceFactory = resourceFactory
                                   ?? throw new ArgumentNullException(nameof(resourceFactory));

            this.mvcPipeline = mvcPipeline
                               ?? throw new ArgumentNullException(nameof(mvcPipeline));
        }
Beispiel #2
0
 public virtual ResourcePipelineInvoker Create(MvcPipeline pipeline)
 => ActivatorUtilities.CreateInstance <ResourcePipelineInvoker>(serviceProvider, pipeline);