IActivityWithTask<TInput, TOutput> Interface
Extends IActivity with Task support.
Namespace
Songhay.Abstractions
Interfaces
graph BT Type-.->Interface0["IActivity"] click Interface0 "/SonghayCore/latest/Songhay.Abstractions/IActivity" Type["IActivityWithTask<TInput, TOutput>"] class Type type-node

Syntax

public interface IActivityWithTask<in TInput, TOutput> : IActivity

Remarks

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

Type Parameters

Name Description
TInput The type of the input.
TOutput The type of the output.

Methods

Name Return Value Summary
StartAsync(TInput) Task<TOutput>
Starts the IActivity asynchronously.

Extension Methods

Name Value Summary
IsAssignableToISerializable<IActivityWithTask<TInput, TOutput>>() bool
Determines whether the specified type can be assigned to System.Runtime.Serialization.ISerializable.
StartActivity(ProgramArgs, TraceSource?, Func<TextWriter>?, bool) string
Starts the IActivity.
StartActivity(ProgramArgs, TraceSource?) string
Starts the IActivity.
StartActivityAsync(TraceSource?, Func<TextWriter>?, bool) Task<string>
Starts the IActivity, asynchronously.
StartActivityAsync(TraceSource?) Task<string>
Starts the IActivity, asynchronously.
StartActivityAsync<TInput, TOutput>(TInput, TraceSource?, Func<TextWriter>?) Task<ActivityOutput<TOutput>>
Starts the IActivity, asynchronously.
StartActivityAsync<TInput, TOutput>(TInput, TraceSource?) Task<ActivityOutput<TOutput>>
Starts the IActivity, asynchronously.
StartActivityAsync<TInput>(TInput, TraceSource?, Func<TextWriter>?, bool) Task<string>
Starts the IActivity, asynchronously.
StartActivityAsync<TInput>(TInput, TraceSource?) Task<string>
Starts the IActivity, asynchronously.
StartActivityForOutput<TInput, TOutput>(TInput, TraceSource?, Func<TextWriter>?, bool) ActivityOutput<TOutput>
Starts the IActivity for the specified output (TOutput).
StartActivityForOutput<TInput, TOutput>(TInput, TraceSource?) ActivityOutput<TOutput>
Starts the IActivity for the specified output (TOutput).
StartConsoleActivity(ProgramArgs, TraceSource?) void
Starts the IActivity with ConsoleTraceListener.
StartConsoleActivityAsync<TInput, TOutput>(TInput, TraceSource?) Task<TOutput>
Starts the IActivity, asynchronously with the specified ConsoleTraceListener.
StartConsoleActivityAsync<TInput>(TInput, TraceSource?) Task
Starts the IActivity, asynchronously with ConsoleTraceListener.
StartConsoleActivityForOutput<TInput, TOutput>(TInput, TraceSource?) TOutput
Starts the IActivity, synchronously with the specified ConsoleTraceListener.
ToActivityWithOutput<TInput, TOutput>() IActivityWithOutput<TInput, TOutput>
Converts the specified IActivity to IActivityWithOutput<TInput, TOutput>.
ToActivityWithTask() IActivityWithTask
Converts the specified IActivity to IActivityWithTask.
ToActivityWithTask<TInput, TOutput>() IActivityWithTask<TInput, TOutput>
Converts the specified IActivity to IActivityWithTask<TInput, TOutput>.
ToActivityWithTask<TInput>() IActivityWithTask<TInput>
Converts the specified IActivity to IActivityWithTask<TInput>.
ToActivityWithTaskOutput<TOutput>() IActivityWithTaskOutput<TOutput>
Converts the specified IActivity to IActivityWithTaskOutput<TOutput>.
ToObjectOrDbNull<IActivityWithTask<TInput, TOutput>>() object
Boxes the nullable in object or returns DBNull.
ToReferenceTypeValueOrThrow<IActivityWithTask<TInput, TOutput>>(string) T
Returns the non-null value of the specified, nullable reference type or throws an ArgumentNullException when the value is null.
WithConfiguration(IConfigurationRoot?) IActivity
Returns IActivity with IConfigurationRoot added when available.

See Also