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)); 442throw 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); 2665throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2671throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2677throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2683throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2839SR.UnexpectedFailureOfThreadPool, 2965throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 2971throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 2977throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 3027throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 3039throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 3179throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3184throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3210throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3216throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3222throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 3254SR.CannotPromoteSnapshot, null, tx.DistributedTxId); 3460throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3472throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3573throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3605TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 3802throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3812throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3821throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3826throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3831throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3901throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3911throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3920throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3925throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3930throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3950SR.UnexpectedFailureOfThreadPool, 4066throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4071throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4076throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4100throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4110throw TransactionAbortedException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4198throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4203throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4212throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4217throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4222throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase, SR.TransactionIndoubt, tx._innerException, tx.DistributedTxId); 4227throw TransactionInDoubtException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4232throw TransactionInDoubtException.Create(SR.TransactionAborted, tx._innerException, tx.DistributedTxId); 4412SR.PromotedReturnedInvalidValue, 4430SR.PromotedReturnedInvalidValue, 4453SR.PromotedReturnedInvalidValue, 4480SR.PromotedReturnedInvalidValue, 4491SR.PromotedTransactionExists, 4533SR.InvalidIPromotableSinglePhaseNotificationSpecified, 4576SR.InvalidIPromotableSinglePhaseNotificationSpecified,
System\Transactions\TransactionTable.cs (2)
241SR.UnexpectedTimerFailure, 448SR.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);