Struct ValueParserContext

Carries the current route segment and request-scoped services into an asynchronous value parser.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
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
In this article
Back to top Generated by DocFX