Struct ValueParserContext
Carries the current route segment and request-scoped services into an asynchronous value parser.
Inherited Members
Namespace: NanoRoute
Assembly: NanoRoute.dll
Syntax
public readonly struct ValueParserContext
Properties
Arguments
Gets the parser arguments that were bound during route registration.
Declaration
public object? Arguments { get; init; }
Property Value
| Type | Description |
|---|---|
| object |
Cancellation
Gets the linked pipeline cancellation token.
Declaration
public CancellationToken Cancellation { get; init; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
Segment
Gets the decoded route segment.
Declaration
public required ReadOnlyMemory<char> Segment { get; init; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<char> |
Services
Gets the request-scoped service provider.
Declaration
public required IServiceProvider Services { get; init; }
Property Value
| Type | Description |
|---|---|
| IServiceProvider |