Table of Contents

Class PollingSetup

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

Configuration for polling behavior when an operation triggers background work via a TerminatingStepFunction.

Polling uses a derivation to create the polling request from the original operation's request and response. The derivation must be defined on the polling operation's DerivedFrom property.

public class PollingSetup
Inheritance
PollingSetup
Inherited Members

Properties

MaxRetryCount

The maximum number of times to retry. If the background asynchrony still hasn't terminated after these many retries, the system is deemed to have a 'liveness bug' indicating the system is stuck and not making forward progress.

public int MaxRetryCount { get; set; }

Property Value

int

Operation

The name of the operation to call for polling (e.g., "GetJob"). This operation must have a derivation defined that derives from the source operation.

public string Operation { get; set; }

Property Value

string

Variant

The derivation variant to use when creating the polling request. Defaults to "Default". Must match a variant defined in the polling operation's DerivedFrom derivations.

public string Variant { get; set; }

Property Value

string

WaitTimeInMs

The delay in milliseconds between each polling attempt.

public int WaitTimeInMs { get; set; }

Property Value

int

Methods

Clone()

Creates a deep clone of this polling setup.

public PollingSetup Clone()

Returns

PollingSetup