public BundlePostConfigureOptions(IOptions <CoreFeatureConfiguration> coreFeatures, IConfiguredConformanceProvider configuredConformanceProvider)
        {
            EnsureArg.IsNotNull(coreFeatures, nameof(coreFeatures));
            EnsureArg.IsNotNull(configuredConformanceProvider, nameof(configuredConformanceProvider));

            _coreFeatures = coreFeatures.Value;
            _configuredConformanceProvider = configuredConformanceProvider;
        }
Beispiel #2
0
        public ConditionalCreatePostConfigureOptions(
            IOptions <FeatureConfiguration> features,
            IConfiguredConformanceProvider configuredConformanceProvider)
        {
            EnsureArg.IsNotNull(features, nameof(features));
            EnsureArg.IsNotNull(configuredConformanceProvider, nameof(configuredConformanceProvider));

            _features = features.Value;
            _configuredConformanceProvider = configuredConformanceProvider;
        }
Beispiel #3
0
        public ValidatePostConfigureOptions(
            IConfiguredConformanceProvider configuredConformanceProvider,
            IModelInfoProvider modelInfoProvider)
        {
            EnsureArg.IsNotNull(configuredConformanceProvider, nameof(configuredConformanceProvider));
            EnsureArg.IsNotNull(modelInfoProvider, nameof(modelInfoProvider));

            _configuredConformanceProvider = configuredConformanceProvider;
            _modelInfoProvider             = modelInfoProvider;
        }
Beispiel #4
0
        public ValidatePostConfigureOptions(
            IOptions <FeatureConfiguration> features,
            IConfiguredConformanceProvider configuredConformanceProvider,
            IModelInfoProvider modelInfoProvider)
        {
            EnsureArg.IsNotNull(features, nameof(features));
            EnsureArg.IsNotNull(features.Value, nameof(features));
            EnsureArg.IsNotNull(configuredConformanceProvider, nameof(configuredConformanceProvider));
            EnsureArg.IsNotNull(modelInfoProvider, nameof(modelInfoProvider));

            _features = features.Value;
            _configuredConformanceProvider = configuredConformanceProvider;
            _modelInfoProvider             = modelInfoProvider;
        }
Beispiel #5
0
        public XmlFormatterConfiguration(
            IOptions <FeatureConfiguration> featureConfiguration,
            IConfiguredConformanceProvider configuredConformanceProvider,
            IEnumerable <TextInputFormatter> inputFormatters,
            IEnumerable <TextOutputFormatter> outputFormatters)
        {
            EnsureArg.IsNotNull(featureConfiguration, nameof(featureConfiguration));
            EnsureArg.IsNotNull(featureConfiguration.Value, nameof(featureConfiguration));
            EnsureArg.IsNotNull(inputFormatters, nameof(inputFormatters));
            EnsureArg.IsNotNull(outputFormatters, nameof(outputFormatters));

            _featureConfiguration          = featureConfiguration.Value;
            _configuredConformanceProvider = configuredConformanceProvider;
        }
Beispiel #6
0
        public ConformanceProvider(
            SystemConformanceProvider systemConformance,
            IConfiguredConformanceProvider configuredConformanceProvider,
            IUrlResolver urlResolver,
            IOptions <ConformanceConfiguration> conformanceConfiguration)
        {
            EnsureArg.IsNotNull(systemConformance, nameof(systemConformance));
            EnsureArg.IsNotNull(configuredConformanceProvider, nameof(configuredConformanceProvider));
            EnsureArg.IsNotNull(urlResolver, nameof(urlResolver));
            EnsureArg.IsNotNull(conformanceConfiguration, nameof(conformanceConfiguration));
            EnsureArg.IsNotNull(conformanceConfiguration.Value, nameof(conformanceConfiguration));

            _systemConformance             = systemConformance;
            _configuredConformanceProvider = configuredConformanceProvider;
            _urlResolver = urlResolver;
            _conformanceConfiguration = conformanceConfiguration.Value;
        }