Table of Contents

RunHost Method

Overloads

RunHost(TProc)

Hosts a single block. Equivalent to CreateHost.Add(ABlock).Run.

Remarks

With one block and nothing else, the block runs on the host's own thread -- no extra thread, and breakpoints land where they used to.

Syntax

Unit: Sparkle.Host

procedure RunHost(const ABlock: TProc); overload;

Parameters

<-> Parameter Type Description
const ABlock TProc

RunHost(TComponentClass)

Hosts a single component, typically a data module.

Syntax

Unit: Sparkle.Host

procedure RunHost(const AComponentClass: TComponentClass); overload;

Parameters

<-> Parameter Type Description
const AComponentClass TComponentClass

RunHost(THostedWorkerClass)

Hosts a single worker.

Syntax

Unit: Sparkle.Host

procedure RunHost(const AWorkerClass: THostedWorkerClass); overload;

Parameters

<-> Parameter Type Description
const AWorkerClass THostedWorkerClass