| 145 | Two additional APIs are added INTERNAL_API as to facilitate committing and rollbacking the transaction. They are not exposed with managed APIs but can only be accessed through C++. Every transaction object on the server side will have a unique identifier accordingly. The transaction id will be serialized and deserialized when passing between proxy feature service and the server-side feature service. |
| 146 | {{{ |
| 147 | class MgFeatureService : public MgService |
| 148 | { |
| 149 | INTERNAL_API: |
| 150 | |
| 151 | // Commit the transaction specified by the transaction id. |
| 152 | virtual bool CommitTransaction(CREFSTRING transactionId) = 0; |
| 153 | |
| 154 | // Rollback the transaction specified by the transaction id. |
| 155 | virtual bool RollbackTransaction(CREFSTRING transactionId) = 0; |
| 156 | }; |
| 157 | }}} |
| 158 | |