OptionsBuilder<TOptions>.Configure Method

Definition

Overloads

Configure(Action<TOptions>)

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

Configure<TDep>(Action<TOptions,TDep>)

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2,TDep3,TDep4,TDep5>(Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>)

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2,TDep3,TDep4>(Action<TOptions,TDep1,TDep2,TDep3,TDep4>)

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2,TDep3>(Action<TOptions,TDep1,TDep2,TDep3>)

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2>(Action<TOptions,TDep1,TDep2>)

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

Configure(Action<TOptions>)

Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

public:
 virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure (Action<TOptions> configureOptions);
abstract member Configure : Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)>
override this.Configure : Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)>
Public Overridable Function Configure (configureOptions As Action(Of TOptions)) As OptionsBuilder(Of TOptions)

Parameters

configureOptions
Action<TOptions>

The action used to configure the options.

Returns

The current OptionsBuilder<TOptions>.

Applies to

Configure<TDep>(Action<TOptions,TDep>)

Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep>
 where TDep : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep> (Action<TOptions,TDep> configureOptions) where TDep : class;
abstract member Configure : Action<'Options, 'Dep (requires 'Options : null and 'Dep : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Dep : null)
override this.Configure : Action<'Options, 'Dep (requires 'Options : null and 'Dep : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Dep : null)
Public Overridable Function Configure(Of TDep As Class) (configureOptions As Action(Of TOptions, TDep)) As OptionsBuilder(Of TOptions)

Type Parameters

TDep

A dependency used by the action.

Parameters

configureOptions
Action<TOptions,TDep>

The action used to configure the options.

Returns

The current OptionsBuilder<TOptions>.

Applies to

Configure<TDep1,TDep2,TDep3,TDep4,TDep5>(Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>)

Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2, typename TDep3, typename TDep4, typename TDep5>
 where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2, TDep3, TDep4, TDep5> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2,TDep3,TDep4,TDep5> (Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5> configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4, 'TDep5 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4, 'TDep5 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class, TDep3 As Class, TDep4 As Class, TDep5 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2, TDep3, TDep4, TDep5)) As OptionsBuilder(Of TOptions)

Type Parameters

TDep1

The first dependency used by the action.

TDep2

The second dependency used by the action.

TDep3

The third dependency used by the action.

TDep4

The fourth dependency used by the action.

TDep5

The fifth dependency used by the action.

Parameters

configureOptions
Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>

The action used to configure the options.

Returns

The current OptionsBuilder<TOptions>.

Applies to

Configure<TDep1,TDep2,TDep3,TDep4>(Action<TOptions,TDep1,TDep2,TDep3,TDep4>)

Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2, typename TDep3, typename TDep4>
 where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2, TDep3, TDep4> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2,TDep3,TDep4> (Action<TOptions,TDep1,TDep2,TDep3,TDep4> configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class, TDep3 As Class, TDep4 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2, TDep3, TDep4)) As OptionsBuilder(Of TOptions)

Type Parameters

TDep1

The first dependency used by the action.

TDep2

The second dependency used by the action.

TDep3

The third dependency used by the action.

TDep4

The fourth dependency used by the action.

Parameters

configureOptions
Action<TOptions,TDep1,TDep2,TDep3,TDep4>

The action used to configure the options.

Returns

The current OptionsBuilder<TOptions>.

Applies to

Configure<TDep1,TDep2,TDep3>(Action<TOptions,TDep1,TDep2,TDep3>)

Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2, typename TDep3>
 where TDep1 : class where TDep2 : class where TDep3 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2, TDep3> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2,TDep3> (Action<TOptions,TDep1,TDep2,TDep3> configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class, TDep3 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2, TDep3)) As OptionsBuilder(Of TOptions)

Type Parameters

TDep1

The first dependency used by the action.

TDep2

The second dependency used by the action.

TDep3

The third dependency used by the action.

Parameters

configureOptions
Action<TOptions,TDep1,TDep2,TDep3>

The action used to configure the options.

Returns

The current OptionsBuilder<TOptions>.

Applies to

Configure<TDep1,TDep2>(Action<TOptions,TDep1,TDep2>)

Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs
Source:
OptionsBuilder.cs

Registers an action used to configure a particular type of options. Note: These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2>
 where TDep1 : class where TDep2 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2> (Action<TOptions,TDep1,TDep2> configureOptions) where TDep1 : class where TDep2 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2)) As OptionsBuilder(Of TOptions)

Type Parameters

TDep1

The first dependency used by the action.

TDep2

The second dependency used by the action.

Parameters

configureOptions
Action<TOptions,TDep1,TDep2>

The action used to configure the options.

Returns

The current OptionsBuilder<TOptions>.

Applies to