Class ResultlessEndpoint<TArg>
An alternate version of Endpoint<TArg, TResult> for queries that have no return value.
public sealed class ResultlessEndpoint<TArg> : Endpoint<TArg, Unit>
Type Parameters
TArg
- Inheritance
-
ResultlessEndpoint<TArg>
- Inherited Members
Constructors
ResultlessEndpoint(Func<TArg, CancellationToken, Task>, EndpointOptions<TArg, Unit>?)
Creates a new Endpoint from a query function with no return value.
public ResultlessEndpoint(Func<TArg, CancellationToken, Task> queryFn, EndpointOptions<TArg, Unit>? options = null)
Parameters
queryFn
Func<TArg, CancellationToken, Task>options
EndpointOptions<TArg, Unit>
ResultlessEndpoint(Func<TArg, Task>, EndpointOptions<TArg, Unit>?)
Creates a new Endpoint from a query function with no return value and no CancellationToken.
public ResultlessEndpoint(Func<TArg, Task> queryFn, EndpointOptions<TArg, Unit>? options = null)
Parameters
queryFn
Func<TArg, Task>options
EndpointOptions<TArg, Unit>