TimerEventSubscription Constructors

Definition

Initializes a new instance of the TimerEventSubscription class.

Overloads

TimerEventSubscription()

Initializes a new instance of the TimerEventSubscription class.

TimerEventSubscription(Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified Guid of a workflow instance and the specified expiration DateTime.

TimerEventSubscription(Guid, Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified subscription Id, the specified Guid of a workflow instance, and the specified expiration DateTime.

TimerEventSubscription()

Initializes a new instance of the TimerEventSubscription class.

protected TimerEventSubscription ();

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

TimerEventSubscription(Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified Guid of a workflow instance and the specified expiration DateTime.

public TimerEventSubscription (Guid workflowInstanceId, DateTime expiresAt);

Parameters

workflowInstanceId
Guid

The Guid of the workflow instance associated with this subscription.

expiresAt
DateTime

A DateTime that represents the time in Universal Coordinated Time (UTC) at which the timer associated with this subscription is expected to expire.

Remarks

The following table shows the initial property values for an instance of TimerEventSubscription.

Property Value
QueueName A string representation of the system-supplied Guid for SubscriptionId.
SubscriptionId A system-supplied Guid.
WorkflowInstanceId The Guid of the workflow instance, specified by workflowInstanceId.
ExpiresAt The DateTime specified by expiresAt.

QueueName is initialized to a string representation of SubscriptionId by this constructor.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

TimerEventSubscription(Guid, Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified subscription Id, the specified Guid of a workflow instance, and the specified expiration DateTime.

public TimerEventSubscription (Guid timerId, Guid workflowInstanceId, DateTime expiresAt);

Parameters

timerId
Guid

The Guid for this subscription.

workflowInstanceId
Guid

The Guid of the workflow instance for which this subscription was created.

expiresAt
DateTime

A DateTime that represents the time in Universal Coordinated Time (UTC) at which the timer for this subscription is expected to expire.

Remarks

The following table shows the initial property values for an instance of TimerEventSubscription.

Property Value
QueueName A string representation of the Guid specified by timerId.
SubscriptionId The Guid specified by timerId.
WorkflowInstanceId The Guid of the workflow instance, specified by workflowInstanceId.
ExpiresAt The DateTime specified by expiresAt.

QueueName is initialized to a string representation of timerId by this constructor.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1