Table of Contents

IHostBuilder.Add Method

Overloads

IHostBuilder.Add(TComponentClass)

A component -- typically a data module that wires everything up in its OnCreate. Created on start, freed on stop.

Syntax

Unit: Sparkle.Host.Contracts

function IHostBuilder.Add(const AComponentClass: TComponentClass): IHostBuilder; overload; virtual; abstract;

Parameters

<-> Parameter Type Description
const AComponentClass TComponentClass

See also

IHostBuilder.Add(TProc)

A block in the shape of the simple form: create, WaitForShutdown, free.

Syntax

Unit: Sparkle.Host.Contracts

function IHostBuilder.Add(const ABlock: TProc): IHostBuilder; overload; virtual; abstract;

Parameters

<-> Parameter Type Description
const ABlock TProc

See also