DurableTimerExtension Classe
Definizione
Rappresenta un'estensione di timer di attività che può essere resa persistente.Represents an activity timer extension that can be persisted.
public ref class DurableTimerExtension : System::Activities::Statements::TimerExtension, IDisposable, System::Activities::Hosting::IWorkflowInstanceExtension
public class DurableTimerExtension : System.Activities.Statements.TimerExtension, IDisposable, System.Activities.Hosting.IWorkflowInstanceExtension
type DurableTimerExtension = class
inherit TimerExtension
interface IWorkflowInstanceExtension
interface IDisposable
Public Class DurableTimerExtension
Inherits TimerExtension
Implements IDisposable, IWorkflowInstanceExtension
- Ereditarietà
- Implementazioni
Commenti
Un DurableTimerExtension oggetto può essere associato solo a una singola istanza del flusso di lavoro.A DurableTimerExtension object can only be associated with a single workflow instance. Se viene DurableTimerExtension utilizzato un oggetto con più di un'istanza del flusso di InvalidOperationException lavoro, viene generata un'eccezione con il messaggio seguente:If a DurableTimerExtension object is used with more than one workflow instance, an InvalidOperationException is thrown with the following message:
This TimerExtension has already been attached to a workflow instance.
Costruttori
DurableTimerExtension() |
Crea una nuova istanza della classe DurableTimerExtension.Creates a new instance of the DurableTimerExtension class. |
Metodi
CancelTimer(Bookmark) |
Rimuove un timer.Removes a timer. (Ereditato da TimerExtension) |
Dispose() |
Termina tutti i timer registrati.Terminates all registered timers. |
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object. (Ereditato da Object) |
GetAdditionalExtensions() |
Restituisce un enumeratore con cui è possibile ripetere la raccolta di estensioni del timer.Returns an enumerator that iterates over the collection of timer extensions. |
GetHashCode() |
Funge da funzione hash predefinita.Serves as the default hash function. (Ereditato da Object) |
GetType() |
Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance. (Ereditato da Object) |
MemberwiseClone() |
Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object. (Ereditato da Object) |
OnCancelTimer(Bookmark) |
Rimuove un oggetto timer dalla tabella di timer registrati per l'operazione del flusso di lavoro corrente.Removes a timer object from the table of registered timers for the current workflow operation. |
OnRegisterTimer(TimeSpan, Bookmark) |
Aggiunge un oggetto timer che contiene l'intervallo di tempo specificato e inserisce un segnalibro di informazioni alla tabella dei timer registrati per l'operazione del flusso di lavoro corrente.Adds a timer object that contains the specified time span and bookmark information to the table of registered timers for the current workflow operation. |
RegisterTimer(TimeSpan, Bookmark) |
Crea un timer con la durata specificata e associato.Creates a timer with the specified duration and associated. (Ereditato da TimerExtension) |
SetInstance(WorkflowInstanceProxy) |
Stabilisce l'istanza del flusso di lavoro specificata come istanza corrente.Establishes the specified workflow instance as the current instance. |
ToString() |
Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object. (Ereditato da Object) |