IActivityWithOutput<TInput, TOutput> Interface
Extends IActivity with output support and input support beyond ProgramArgs.
Namespace
Songhay.Abstractions
Interfaces
graph BT Type-.->Interface0["IActivity"] click Interface0 "/SonghayCore/latest/Songhay.Abstractions/IActivity" Type["IActivityWithOutput<TInput, TOutput>"] class Type type-node

Syntax

public interface IActivityWithOutput<in TInput, out TOutput> : IActivity

Type Parameters

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

Methods

Name Return Value Summary
StartForOutput(TInput) TOutput
Starts with the specified input and synchronously returns TOutput.

Extension Methods

Name Value Summary
IsAssignableToISerializable<IActivityWithOutput<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<IActivityWithOutput<TInput, TOutput>>() object
Boxes the nullable in object or returns DBNull.
ToReferenceTypeValueOrThrow<IActivityWithOutput<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