BaseOutputBuilder<TBuilder, TOutput> Class

Summary

Base for builders that support BaseOutputCommand<T>.
graph BT Type-->Base0["object"] Type["BaseOutputBuilder<TBuilder, TOutput>"] class Type type-node Derived0["InformationCommandBuilder"]-->Type click Derived0 "/Cake.7zip/api/Cake.SevenZip.Builder/InformationCommandBuilder" Derived1["HashCommandBuilder"]-->Type click Derived1 "/Cake.7zip/api/Cake.SevenZip.Builder/HashCommandBuilder" Derived2["ListCommandBuilder"]-->Type click Derived2 "/Cake.7zip/api/Cake.SevenZip.Builder/ListCommandBuilder" Derived3["TestCommandBuilder"]-->Type click Derived3 "/Cake.7zip/api/Cake.SevenZip.Builder/TestCommandBuilder" Derived4["BenchmarkCommandBuilder"]-->Type click Derived4 "/Cake.7zip/api/Cake.SevenZip.Builder/BenchmarkCommandBuilder"

Syntax

public abstract class BaseOutputBuilder<TBuilder, TOutput> 
    where TBuilder : BaseOutputBuilder<TBuilder, TOutput> where TOutput : IOutput

Type Parameters

Name Description
TBuilder the command-builder that extends this base-class. Only needed for "nice" fluid-tying.
TOutput the output of the BaseOutputCommand<T> supported by this builder.

Properties

Name Value Summary
OutputCommand BaseOutputCommand<TOutput>
Gets the output command.

Methods

Name Value Summary
WithCommandOutput(Action<TOutput>?) TBuilder
fluent action to set the output-action of BaseOutputCommand<T>.
WithCommandRawOutput(Action<string[]>?) TBuilder
fluent action to set the raw-output of BaseOutputCommand<T>.
GitHub Discussion