Table of Contents

Interface IGovernanceLoadDemonstrationService

Namespace
ReferenceApplication.Web.Governance.Demonstration
Assembly
ReferenceApplication.Web.dll

Starts, cancels, and observes the process-local governance load demonstration.

public interface IGovernanceLoadDemonstrationService

Properties

Current

Gets the current aggregate state.

GovernanceLoadDemonstrationSnapshot Current { get; }

Property Value

GovernanceLoadDemonstrationSnapshot

Methods

Subscribe()

Subscribes to current and future aggregate state updates.

IGovernanceLoadDemonstrationSubscription Subscribe()

Returns

IGovernanceLoadDemonstrationSubscription

TryCancel()

Requests cancellation of the active run.

bool TryCancel()

Returns

bool

TryStart(int, int)

Attempts to start a run with explicit iteration and duration bounds.

GovernanceLoadDemonstrationStartResult TryStart(int iterations, int durationMilliseconds)

Parameters

iterations int
durationMilliseconds int

Returns

GovernanceLoadDemonstrationStartResult