TechTalk Genome v4.2

Context.BeforeRollbackObject Event

Raised for persistent objects being rolled back but before its state is discarded in this Context.

public event RollbackEventHandler BeforeRollbackObject;

Implements

IContext.BeforeRollbackObject

Remarks

The subscriber of the event may freely modify sender or any other persisent objects. If any synchronized persistent object is modified during the execution of the BeforeRollbackObject event then the BeforeRollbackObject event will be also signaled for the modified object. The BeforeRollbackObject event is raised only once for any involved persistent object, even if the concerned object has been further modified after notifying it.

The Context that raises the event will automatically become the active Context in the calling thread for the duration of the call. This ensures that any unbound proxies used in the event handlers are resolved from the relevant Context. When the events have been successfully processed, the context stack of the calling thread is restored to its previous state.

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

See Also

Context Class | TechTalk.Genome Namespace | IBeforeRollbackCallback | Rollback | AfterRollbackObject