public virtual void Commit(ICommittedCallbackDispatcher dispatcher) { lock (Container().Lock()) { CommitListeners(); DispatchCommittingCallback(); if (!DoCommittedCallbacks(dispatcher)) { CommitImpl(); CommitClearAll(); } else { var deleted = CollectCommittedCallbackDeletedInfo(); CommitImpl(); var committedInfo = CollectCommittedCallbackInfo(deleted ); CommitClearAll(); dispatcher.DispatchCommitted(CallbackObjectInfoCollections.Emtpy == committedInfo ? committedInfo : new CallbackObjectInfoCollections(committedInfo.added, committedInfo .updated, new ObjectInfoCollectionImpl(deleted))); } } }
public virtual void Commit(ICommittedCallbackDispatcher dispatcher) { lock (Container().Lock()) { DispatchCommittingCallback(); if (!DoCommittedCallbacks(dispatcher)) { CommitListeners(); CommitImpl(); CommitClearAll(); } else { CommitListeners(); Collection4 deleted = CollectCommittedCallbackDeletedInfo(); CommitImpl(); CallbackObjectInfoCollections committedInfo = CollectCommittedCallbackInfo(deleted ); CommitClearAll(); dispatcher.DispatchCommitted(CallbackObjectInfoCollections.Emtpy == committedInfo ? committedInfo : new CallbackObjectInfoCollections(committedInfo.added, committedInfo .updated, new ObjectInfoCollectionImpl(deleted))); } } }
public LocalTransaction(ObjectContainerBase container, Transaction parentTransaction , ITransactionalIdSystem idSystem, IReferenceSystem referenceSystem) : base(container , parentTransaction, referenceSystem) { _file = (LocalObjectContainer) container; _committedCallbackDispatcher = new _ICommittedCallbackDispatcher_39(this); _idSystem = idSystem; }
public LocalTransaction(ObjectContainerBase container, Transaction parentTransaction , ITransactionalIdSystem idSystem, IReferenceSystem referenceSystem) : base(container , parentTransaction, referenceSystem) { _file = (LocalObjectContainer)container; _committedCallbackDispatcher = new _ICommittedCallbackDispatcher_39(this); _idSystem = idSystem; }
private bool DoCommittedCallbacks(ICommittedCallbackDispatcher dispatcher) { if (IsSystemTransaction()) { return(false); } return(dispatcher.WillDispatchCommitted()); }
private bool DoCommittedCallbacks(ICommittedCallbackDispatcher dispatcher) { if (IsSystemTransaction()) { return false; } return dispatcher.WillDispatchCommitted(); }