TransactedProperty<T>.Commit Method |
Commits the specified modification.
Namespace:
AGI.Foundation.Infrastructure.Threading
Assembly:
AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxprotected override Object Commit(
Transaction transaction,
Object modificationDetails
)
Protected Overrides Function Commit (
transaction As Transaction,
modificationDetails As Object
) As Object
protected:
virtual Object^ Commit(
Transaction^ transaction,
Object^ modificationDetails
) override
abstract Commit :
transaction : Transaction *
modificationDetails : Object -> Object
override Commit :
transaction : Transaction *
modificationDetails : Object -> Object
Parameters
- transaction
- Type: AGI.Foundation.Transaction
The committing transaction. - modificationDetails
- Type: System.Object
The modification to commit. This is the object that was passed to
AddModification(TransactedObject, Object).
Return Value
Type:
Object
The data to pass to the
Notify(Object, Transaction) method after all transacted objects have been committed.
If this method returns
null,
Notify(Object, Transaction) will not be called.
Remarks
This method is called only if
ValidateModification(Transaction, Object) returns
true, and it is called without the possibility of an intervening transaction committing.
Therefore, it is not necessary to revalidate the modification.
See Also