IOMTransactionCommit Method

Commits requested sequence.

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
IOMTransactionResult Commit()

Return Value

IOMTransactionResult
Transaction report

Remarks

WARNING: limitation of the transaction usage. All the snapshots added to the transaction will be destroyed independently of the result.
So, all the snapshots should be created exclusibvely for the specific transaction and should not be left referenced after try to commit. In case if transaction needs to be repeated after failure, it must be created from scratch.
New state of the objects included to the commit needs to be manualy requested by the available methods (like GetByID, GetByName etc)
For example: if transaction updates Extension 100 and creates Extension 101 then new Snapshots for those objects can be obtained by calling GetDNByNumber("100" or "101") after successful commit The extension 100 could be also be taken using GetByID[Extension](theEXT100IDrememberedbeforecommit) in case of failure, new transaction needs to be created, Extension 100 update need to be reapplied on the new fresh snapshot taken as specified above and Extension 101 needs to be recreated from scratch. then both need to be added to new transaction.

Exceptions

ObjectSavingExceptionDelivers failure report Result

See Also