IOutputHandler.AddOutputStream

AddOutputStream(string, Func<Stream, Task>)

Adds a named output stream using an asynchronous write action.

public Task AddOutputStream(string name, Func<Stream, Task> writeAction)
ParameterTypeDescription
nameStringThe name of the output stream (e.g. file name).
writeActionFunc`2An asynchronous function that writes to the provided stream.

Return Value

A task representing the asynchronous operation.

See Also


AddOutputStream(string, Action<Stream>)

Adds a named output stream using a synchronous write action.

public void AddOutputStream(string name, Action<Stream> writeAction)
ParameterTypeDescription
nameStringThe name of the output stream (e.g. file name).
writeActionAction`1A synchronous action that writes to the provided stream.

See Also