CreateEnlistmentStateException() статический приватный Метод

static private CreateEnlistmentStateException ( Exception innerException, Guid distributedTxId ) : Exception
innerException Exception
distributedTxId Guid
Результат Exception
Пример #1
0
 internal virtual byte[] RecoveryInformation(InternalEnlistment enlistment)
 {
     throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Пример #2
0
 internal virtual void ChangeStateSinglePhaseCommit(InternalEnlistment enlistment)
 {
     Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}");
     throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Пример #3
0
 internal virtual void ForceRollback(InternalEnlistment enlistment, Exception?e)
 {
     throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Пример #4
0
 internal virtual void InDoubt(InternalEnlistment enlistment, Exception e)
 {
     throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Пример #5
0
 internal virtual void ChangeStateSinglePhaseCommit(InternalEnlistment enlistment)
 {
     Debug.Assert(false, string.Format(null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType()));
     throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Пример #6
0
 internal virtual void Aborted(InternalEnlistment enlistment, Exception e)
 {
     throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
 internal virtual byte[] RecoveryInformation(InternalEnlistment enlistment)
 {
     throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null);
 }
Пример #8
0
 internal virtual void ChangeStatePreparing(InternalEnlistment enlistment)
 {
     Debug.Assert(false, string.Format(null, "Invalid Event for InternalEnlistment State; Current State: {0}", GetType()));
     throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
 internal virtual void InDoubt(InternalEnlistment enlistment, Exception e)
 {
     throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null);
 }
 internal virtual void Committed(InternalEnlistment enlistment)
 {
     throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null);
 }
 internal virtual void ChangeStatePreparing(InternalEnlistment enlistment)
 {
     Debug.Assert(false, string.Format(null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType()));
     throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null);
 }
Пример #12
0
 internal virtual void InternalAborted(InternalEnlistment enlistment)
 {
     Debug.Assert(false, string.Format(null, "Invalid Event for InternalEnlistment State; Current State: {0}", GetType()));
     throw TransactionException.CreateEnlistmentStateException(SR.TraceSourceLtm, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Пример #13
0
 internal virtual void Committed(InternalEnlistment enlistment)
 {
     throw TransactionException.CreateEnlistmentStateException(SR.TraceSourceLtm, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }