/// <summary> /// Acquires the transaction scope. /// </summary> /// <returns>Transaction scope, operations within the scope excute atomically.</returns> private IStoreTransactionScope GetTransactionScope(StoreOperationTransactionScopeKind scopeKind) { switch (scopeKind) { case StoreOperationTransactionScopeKind.Global: return(_globalConnection.GetTransactionScope(StoreTransactionScopeKind.ReadWrite)); case StoreOperationTransactionScopeKind.LocalSource: return(_localConnectionSource.GetTransactionScope(StoreTransactionScopeKind.ReadWrite)); default: Debug.Assert(scopeKind == StoreOperationTransactionScopeKind.LocalTarget); return(_localConnectionTarget.GetTransactionScope(StoreTransactionScopeKind.ReadWrite)); } }
/// <summary> /// Acquires the transaction scope. /// </summary> /// <returns>Transaction scope, operations within the scope excute atomically.</returns> private IStoreTransactionScope GetTransactionScope(StoreOperationTransactionScopeKind scopeKind) { switch (scopeKind) { case StoreOperationTransactionScopeKind.Global: return _globalConnection.GetTransactionScope(StoreTransactionScopeKind.ReadWrite); case StoreOperationTransactionScopeKind.LocalSource: return _localConnectionSource.GetTransactionScope(StoreTransactionScopeKind.ReadWrite); default: Debug.Assert(scopeKind == StoreOperationTransactionScopeKind.LocalTarget); return _localConnectionTarget.GetTransactionScope(StoreTransactionScopeKind.ReadWrite); } }