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["HashCommandBuilder"]-->Type click Derived0 "/api/Cake.SevenZip.Builder/HashCommandBuilder" Derived1["BenchmarkCommandBuilder"]-->Type click Derived1 "/api/Cake.SevenZip.Builder/BenchmarkCommandBuilder" Derived2["ListCommandBuilder"]-->Type click Derived2 "/api/Cake.SevenZip.Builder/ListCommandBuilder" Derived3["InformationCommandBuilder"]-->Type click Derived3 "/api/Cake.SevenZip.Builder/InformationCommandBuilder" Derived4["TestCommandBuilder"]-->Type click Derived4 "/api/Cake.SevenZip.Builder/TestCommandBuilder"

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.

Constructors

Name Summary
BaseOutputBuilder()

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>.

Extension Methods

Name Value Summary
Dump<BaseOutputBuilder<TBuilder, TOutput>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseOutputBuilder<TBuilder, TOutput>>(BaseOutputBuilder<TBuilder, TOutput>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseOutputBuilder<TBuilder, TOutput>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BaseOutputBuilder<TBuilder, TOutput>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<BaseOutputBuilder<TBuilder, TOutput>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BaseOutputBuilder<TBuilder, TOutput>>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin