Table of Contents

Interface IActivityOutputOnlyTask<TOutput>

Namespace
Songhay.Abstractions
Assembly
SonghayCore.dll

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

public interface IActivityOutputOnlyTask<TOutput> where TOutput : notnull

Type Parameters

TOutput

The non-nullable type of the output.

Extension Methods

Remarks

For detail around why this definition exists, see https://github.com/BryanWilhite/SonghayCore/issues/83

Methods

StartAsync(CancellationToken)

Starts the IActivity asynchronously.

Task<TOutput> StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The CancellationToken.

Returns

Task<TOutput>

Remarks

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

See Also