Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TenantOptionsFactory{TOptions}"/> class.
 /// </summary>
 /// <param name="tenant">The <see cref="TenantId"/> to create <see cref="IOptions{TOptions}"/> configuration for.</param>
 /// <param name="configuration">The <see cref="IConfiguration"/>.</param>
 /// <param name="definitions">The <see cref="IEnumerable{T}"/> of <see cref="ConfigurationObjectDefinition{TOptions}"/>.</param>
 /// <param name="parser">The <see cref="IParseConfigurationObjects"/>.</param>
 /// <param name="setups">The <see cref="IEnumerable{T}"/> of <see cref="IConfigureOptions{TOptions}"/>.</param>
 /// <param name="postConfigures">The <see cref="IEnumerable{T}"/> of <see cref="IPostConfigureOptions{TOptions}"/>.</param>
 /// <param name="validations">The <see cref="IEnumerable{T}"/> of <see cref="IValidateOptions{TOptions}"/>.</param>
 public TenantOptionsFactory(
     TenantId tenant,
     IConfiguration configuration,
     IEnumerable <ConfigurationObjectDefinition <TOptions> > definitions,
     IParseConfigurationObjects parser,
     IEnumerable <IConfigureOptions <TOptions> > setups,
     IEnumerable <IPostConfigureOptions <TOptions> > postConfigures,
     IEnumerable <IValidateOptions <TOptions> > validations)
     : base(configuration, definitions, parser, setups, postConfigures, validations)
 {
     _tenant = tenant;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OptionsFactory{TOptions}"/> class.
 /// </summary>
 /// <param name="configuration">The <see cref="IConfiguration."/></param>
 /// <param name="definitions">The <see cref="IEnumerable{T}"/> of <see cref="ConfigurationObjectDefinition{TOptions}"/>.</param>
 /// <param name="parser">The <see cref="IParseConfigurationObjects"/>.</param>
 /// <param name="setups">The <see cref="IEnumerable{T}"/> of <see cref="IConfigureOptions{TOptions}"/>.</param>
 /// <param name="postConfigures">The <see cref="IEnumerable{T}"/> of <see cref="IPostConfigureOptions{TOptions}"/>.</param>
 /// <param name="validations">The <see cref="IEnumerable{T}"/> of <see cref="IValidateOptions{TOptions}"/>.</param>
 public OptionsFactory(
     IConfiguration configuration,
     IEnumerable <ConfigurationObjectDefinition <TOptions> > definitions,
     IParseConfigurationObjects parser,
     IEnumerable <IConfigureOptions <TOptions> > setups,
     IEnumerable <IPostConfigureOptions <TOptions> > postConfigures,
     IEnumerable <IValidateOptions <TOptions> > validations)
     : base(setups, postConfigures, validations)
 {
     _configuration = configuration;
     _definitions   = definitions;
     _parser        = parser;
 }