Enum ValueSource
Describes how a typed handler property is populated.
Namespace: NanoRoute
Assembly: NanoRoute.dll
Syntax
public enum ValueSource
Examples
public sealed class UserRequest
{
[ValueSource(ValueSource.Parameter, Name = "id")]
public int Id { get; init; }
}
Fields
| Name | Description |
|---|---|
| Parameter | Reads the value from Parameters. |
| ServiceLocator | Resolves the value from Services. |
| Skip | Leaves the property untouched. |