WriteAsync(System.IO.TextWriter writer, string configurationFileName, string instanceName, Inedo.Diagnostics.ILogSink log) Method

Finds a configuration file instance matching the specified arguments, applies all templating transforms and variable replacements, and writes the result to writer.

Syntax

public abstract Task<bool> WriteAsync(System.IO.TextWriter writer, string configurationFileName, string instanceName, Inedo.Diagnostics.ILogSink log)

Parameters

writer
Type: System.IO.TextWriter

System.IO.TextWriter to write output text to.

configurationFileName
Type: string

Name of the configuration file.

instanceName
Type: string

Instance name of the configuration file.

log
Type: Inedo.Diagnostics.ILogSink

Log to write errors and warnings to.

Returns

True if successful; false if there was a failure. Details are provided via the log argument.

Exceptions

System.ArgumentNullException

writer is null (Nothing in Visual Basic) or configurationFileName is null (Nothing in Visual Basic) or empty or instanceName is null (Nothing in Visual Basic) or empty.