Table of Contents

Class ResultlessEndpoint<TArg>

Namespace
Phetch.Core
Assembly
Phetch.Core.dll

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
Endpoint<TArg, Unit>
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>