TransactedPropertyT Class |
Namespace: AGI.Foundation.Infrastructure.Threading
The TransactedPropertyT type exposes the following members.
Name | Description | |
---|---|---|
TransactedPropertyT(TransactionContext, Object) |
Initializes a new property with a specified context and owner.
The value of the property will be the default value for the type T.
| |
TransactedPropertyT(TransactionContext, Object, T) |
Initializes a new property with a specified context, owner, and value.
|
Name | Description | |
---|---|---|
Context |
Gets the transaction context in which this object can be modified.
(Inherited from TransactedObject.) | |
Owner |
Gets the object that owns this transacted object, or if this object
does not have an owner.
(Inherited from TransactedObject.) |
Name | Description | |
---|---|---|
Abort |
Aborts the specified modification.
(Overrides TransactedObjectAbort(Transaction, Object).) | |
CheckTransaction |
Verifies that a specified transaction is in the same context as this
transacted object and throws an ArgumentException if it is not.
(Inherited from TransactedObject.) | |
Cleanup |
Cleans up modifications that are no longer visible to any transaction.
(Overrides TransactedObjectCleanup(Object).) | |
Commit |
Commits the specified modification.
(Overrides TransactedObjectCommit(Transaction, Object).) | |
EnsureValue |
At Commit time, ensures that the value of this property, as seen by a
given Transaction, has not changed. If another transaction commits a change to this
property after the specified transaction starts, the specified transaction
will throw TransactionConflictException when it is committed.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Gets the value of this transacted property in the context of the given transaction,
guaranteeing snapshot isolation. See the Remarks section for more information.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Notify |
Notifies interested parties of changes to this transacted object.
(Overrides TransactedObjectNotify(Object, Transaction).) | |
SetValue |
Sets the value of this property in the context of the specified transaction. The changed value
will not be visible to other transactions until Commit is called.
Calling this method may cause a TransactionConflictException to be raised at
Commit time. See the Remarks section for more information.
| |
ToString |
Get a String that represents the value of this transacted property.
(Overrides ObjectToString.) | |
ValidateModification |
Verifies a modification to ensure that it is still valid after other transactions
have potentially committed modifications to this object.
(Overrides TransactedObjectValidateModification(Transaction, Object).) |
Name | Description | |
---|---|---|
Changed |
Raised when a transaction that changes this property is Committed.
See the Remarks section for more information.
|