Class AbpOptionsFactory<TOptions>
Inheritance
object
AbpOptionsFactory<TOptions>
Implements
Microsoft.Extensions.Options.IOptionsFactory<TOptions><TOptions>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Options
Assembly: Volo.Abp.Core.dll
Syntax
public class AbpOptionsFactory<TOptions> : IOptionsFactory<TOptions> where TOptions : class, new()
Type Parameters
| Name | Description |
|---|---|
| TOptions |
Constructors
AbpOptionsFactory(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>, IEnumerable<IValidateOptions<TOptions>>)
Declaration
public AbpOptionsFactory(IEnumerable<IConfigureOptions<TOptions>> setups, IEnumerable<IPostConfigureOptions<TOptions>> postConfigures, IEnumerable<IValidateOptions<TOptions>> validations)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><IConfigureOptions<TOptions>> | setups | |
| System.Collections.Generic.IEnumerable<T><IPostConfigureOptions<TOptions>> | postConfigures | |
| System.Collections.Generic.IEnumerable<T><IValidateOptions<TOptions>> | validations |
AbpOptionsFactory(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>)
Declaration
public AbpOptionsFactory(IEnumerable<IConfigureOptions<TOptions>> setups, IEnumerable<IPostConfigureOptions<TOptions>> postConfigures)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><IConfigureOptions<TOptions>> | setups | |
| System.Collections.Generic.IEnumerable<T><IPostConfigureOptions<TOptions>> | postConfigures |
Methods
ConfigureOptions(string, TOptions)
Declaration
protected virtual void ConfigureOptions(string name, TOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| TOptions | options |
Create(string)
Declaration
public virtual TOptions Create(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Returns
| Type | Description |
|---|---|
| TOptions |
PostConfigureOptions(string, TOptions)
Declaration
protected virtual void PostConfigureOptions(string name, TOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| TOptions | options |
ValidateOptions(string, TOptions)
Declaration
protected virtual void ValidateOptions(string name, TOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| TOptions | options |
Implements
Microsoft.Extensions.Options.IOptionsFactory<TOptions>