static private CreateEnlistmentStateException ( Exception innerException, Guid distributedTxId ) : Exception | ||
innerException | Exception | |
distributedTxId | Guid | |
return | Exception |
internal virtual byte[] RecoveryInformation(InternalEnlistment enlistment) { throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); }
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); }
internal virtual void ForceRollback(InternalEnlistment enlistment, Exception?e) { throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); }
internal virtual void InDoubt(InternalEnlistment enlistment, Exception e) { throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); }
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); }
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); }
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); }
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); }
internal virtual void Committed(InternalEnlistment enlistment) { throw TransactionException.CreateEnlistmentStateException(SR.TraceSourceLtm, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); }