Sage Modeling and Simulation Library

ITransitionHandler Members

The ITransitionHandler type exposes the following members.

Methods


  Name Description
Public method AddCommitEvent
Adds a handler to the Commit event with an explicitly-specified sequence number. The sequence begins with those handlers that have a low sequence number.
Public method AddPrepareEvent
Adds a handler to the Prepare event with an explicitly-specified sequence number. The sequence begins with those handlers that have a low sequence number.
Public method AddRollbackEvent
Adds a handler to the Prepare event with an explicitly-specified sequence number. The sequence begins with those handlers that have a low sequence number.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveCommitEvent
Removes a handler from the set of handlers that are registered for the commit event.
Public method RemovePrepareEvent
Removes a handler from the set of handlers that are registered for the prepare event.
Public method RemoveRollbackEvent
Removes a handler from the set of handlers that are registered for the rollback event.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property IsValidTransition
Indicates whether this transition is permissible.

Events


  Name Description
Public event Commit
If preparation is successful, this event is fired to signify commitment of the transition. This event permits registration for the commitment using the standard += and -= syntax.
Public event Prepare
This event is fired when the transition is beginning, and all handlers are given an opportunity to register failure reasons. This event permits registration for the preparation using the standard += and -= syntax.
Public event Rollback
If preparation is not successful, this event is fired to signify the failure of an attempted transition. This event permits registration for the rollback using the standard += and -= syntax.