Skip to content

Microsoft FactoryOrchestrator Client ServerPoller ServerPoller(System Nullable System Guid System Type int bool int)

Microsoft.FactoryOrchestrator.Client

Microsoft.FactoryOrchestrator.Client.ServerPoller

ServerPoller(System.Nullable<System.Guid>, System.Type, int, bool, int) Constructor

Create a new ServerPoller. The ServerPoller is associated with a specific FactoryOrchestratorClient and object you want to poll. The desired object is referred to by its GUID. The GUID can be NULL for TaskRun polling.
If it is NULL and the guidType is TaskList, a List of TaskListSummary objects is returned.

public ServerPoller(System.Nullable<System.Guid> guidToPoll, System.Type guidType, int pollingIntervalMs=500, bool adaptiveInterval=true, int maxAdaptiveModifier=3);

Parameters

guidToPoll System.Nullable<System.Guid>
GUID of the object you want to poll

guidType System.Type
The type of object that GuidToPoll is

pollingIntervalMs System.Int32
How frequently the polling should be done, in milliseconds. Defaults to 500ms.

adaptiveInterval System.Boolean
If true, automatically adjust the polling interval for best performance. Defaults to true.

maxAdaptiveModifier System.Int32
If adaptiveInterval is set, this defines the maximum multiplier/divisor that will be applied to the polling interval. For example, if maxAdaptiveModifier=2 and pollingIntervalMs=100, the object would be polled at a rate between 50ms to 200ms. Defaults to 5.