139 references to SR
System.Transactions.Local (139)
System\Transactions\CommittableTransaction.cs (1)
166throw new ArgumentException(SR.BadAsyncResult, nameof(asyncResult));
System\Transactions\EnterpriseServices.cs (1)
44throw new PlatformNotSupportedException(SR.EsNotSupported);
System\Transactions\InternalTransaction.cs (3)
216throw new InvalidOperationException(SR.PromoterTypeInvalid); 227throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, _promoterType.ToString()), _innerException);
System\Transactions\NonWindowsUnsupported.cs (2)
47=> new PlatformNotSupportedException(SR.DistributedNotSupported); 121=> new PlatformNotSupportedException(SR.DistributedNotSupported);
System\Transactions\Transaction.cs (6)
169throw new InvalidOperationException(SR.TransactionScopeComplete); 198throw new InvalidOperationException(SR.CannotSetCurrent); 485throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 533throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 907throw new ArgumentException(SR.PromoterTypeInvalid, nameof(promoterType)); 946throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier));
System\Transactions\TransactionException.cs (36)
35return Create(SR.TransactionStateException, innerException); 40string messagewithTxId = SR.EnlistmentStateException; 42messagewithTxId = SR.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId); 102return new TransactionException(SR.Format(SR.DistributedTxIDInTransactionException, message, distributedTxId)); 111messagewithTxId = SR.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId); 118return Create(SR.TransactionStateException, innerException, distributedTxId); 123string messagewithTxId = SR.TransactionAlreadyCompleted; 125messagewithTxId = SR.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId); 140messagewithTxId = SR.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId); 158messagewithTxId = SR.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId); 176public TransactionAbortedException() : base(SR.TransactionAborted) 184public TransactionAbortedException(string? message) : base(message ?? SR.TransactionAborted) 193public TransactionAbortedException(string? message, Exception? innerException) : base(message ?? SR.TransactionAborted, innerException) 201internal TransactionAbortedException(Exception? innerException) : base(SR.TransactionAborted, innerException) 207SR.Format(SR.DistributedTxIDInTransactionException, SR.TransactionAborted, distributedTxId) 208: SR.TransactionAborted, innerException) 235messagewithTxId = SR.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId); 254public TransactionInDoubtException() : base(SR.TransactionIndoubt) 262public TransactionInDoubtException(string? message) : base(message ?? SR.TransactionIndoubt) 271public TransactionInDoubtException(string? message, Exception? innerException) : base(message ?? SR.TransactionIndoubt, innerException) 307return Create(SR.TransactionManagerCommunicationException, innerException); 313public TransactionManagerCommunicationException() : base(SR.TransactionManagerCommunicationException) 321public TransactionManagerCommunicationException(string? message) : base(message ?? SR.TransactionManagerCommunicationException) 333) : base(message ?? SR.TransactionManagerCommunicationException, innerException) 356public TransactionPromotionException() : this(SR.PromotionFailed) 364public TransactionPromotionException(string? message) : base(message ?? SR.PromotionFailed) 373public TransactionPromotionException(string? message, Exception? innerException) : base(message ?? SR.PromotionFailed, innerException)
System\Transactions\TransactionInteropNonWindows.cs (3)
77throw new ArgumentException(SR.InvalidArgument, nameof(cookie)); 147throw new ArgumentException(SR.InvalidArgument, nameof(propagationToken)); 248throw new ArgumentException(SR.InvalidArgument, nameof(propagationToken));
System\Transactions\TransactionManager.cs (8)
128throw new InvalidOperationException(SR.CurrentDelegateSet); 144throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 182throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation)); 191throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e); 199throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e); 233throw new ArgumentException(SR.InvalidRecoveryInformation, "recoveryInformation"); 242throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 447throw new PlatformNotSupportedException(SR.DistributedNotSupported);
System\Transactions\TransactionScope.cs (11)
215throw new ArgumentException(SR.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions)); 297throw new ArgumentException(SR.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions)); 528throw new InvalidOperationException(SR.InvalidScopeThread); 564TraceSourceType.TraceSourceBase, SR.TransactionScopeInvalidNesting, null, rollbackTransaction.DistributedTxId); 600exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase, SR.TransactionScopeIncorrectCurrent, null, 627exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase, SR.TransactionScopeInvalidNesting, null, 701exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase, SR.TransactionScopeIncorrectCurrent, null, 839throw TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase, SR.DisposeScope, null); 860throw TransactionException.Create(SR.InternalError + SR.TransactionScopeTimerObjectInvalid, null); 1156throw new NotSupportedException(SR.AsyncFlowAndESInteropNotSupported);
System\Transactions\TransactionState.cs (61)
593TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 1250TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 1498return TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 1626throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 1632throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 1638throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 2064tx._innerException ??= new TimeoutException(SR.TraceTransactionTimeout); 2152SR.CannotPromoteSnapshot, null); 2668throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2674throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2680throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2686throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2842SR.UnexpectedFailureOfThreadPool, 2968throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 2974throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 2980throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 3030throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 3042throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 3182throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3187throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3213throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3219throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3225throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3257SR.CannotPromoteSnapshot, null, tx.DistributedTxId); 3463throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3475throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3576throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3608TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 3805throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3815throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3824throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3829throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3834throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3904throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3914throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3923throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3928throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3933throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3953SR.UnexpectedFailureOfThreadPool, 4069throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4074throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4079throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4103throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4113throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4201throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4206throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4215throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4220throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4225throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4230throw TransactionInDoubtException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4235throw TransactionInDoubtException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4415SR.PromotedReturnedInvalidValue, 4433SR.PromotedReturnedInvalidValue, 4456SR.PromotedReturnedInvalidValue, 4483SR.PromotedReturnedInvalidValue, 4494SR.PromotedTransactionExists, 4536SR.InvalidIPromotableSinglePhaseNotificationSpecified, 4579SR.InvalidIPromotableSinglePhaseNotificationSpecified,
System\Transactions\TransactionTable.cs (2)
241SR.UnexpectedTimerFailure, 451SR.UnexpectedTimerFailure,
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
99SR.UnexpectedFailureOfThreadPool, 138SR.UnexpectedFailureOfThreadPool, 177SR.UnexpectedFailureOfThreadPool, 216SR.UnexpectedFailureOfThreadPool,
System\Transactions\VolatileEnlistmentState.cs (1)
72SR.VolEnlistNoRecoveryInfo, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);