Table of Contents

Interface IActivityValueTask<TInput, TOutput>

Namespace
Songhay.Abstractions
Assembly
SonghayCore.dll

Defines an Activity, optionally for IHost conventions, with ValueTask support.

public interface IActivityValueTask<in TInput, TOutput> where TOutput : notnull

Type Parameters

TInput

The type of the input.

TOutput

The non-nullable value type of the output.

Extension Methods

Methods

StartAsync(TInput?, CancellationToken)

Starts the IActivity asynchronously.

ValueTask<TOutput> StartAsync(TInput? input, CancellationToken cancellationToken)

Parameters

input TInput

The input.

cancellationToken CancellationToken

The CancellationToken.

Returns

ValueTask<TOutput>

Remarks

Note that TOutput is not marked as nullable with the expectation that *Result classes/records like EndpointResult will be used.

See Also

IActivityValueTask<TInput, TOutput>