Delegate ConfigureBuilderDelegate<TConfig>
Updates a typed builder configuration object.
Namespace: NanoRoute
Assembly: NanoRoute.dll
Syntax
public delegate TConfig ConfigureBuilderDelegate<TConfig>(TConfig config)
Parameters
| Type | Name | Description |
|---|---|---|
| TConfig | config | The configuration currently visible from the builder scope. |
Returns
| Type | Description |
|---|---|
| TConfig | The replacement configuration. |
Type Parameters
| Name | Description |
|---|---|
| TConfig | The configuration object type. |
Remarks
Configuration delegates run during route registration, not during request processing. Extension methods that
use Metadata can use this delegate shape for scoped builder settings.
A module registration should capture the configuration visible when it is registered; later
ConfigureXxx() calls affect later registrations, not registrations that already exist.
Exceptions thrown by the delegate propagate from the configuration method that invoked it.
Examples
builder.ConfigureRouting(config => config with { ParametersCapacity = 16 });