215 references to SR
System.Transactions.Local (215)
System\Transactions\CommittableTransaction.cs (1)
166throw new ArgumentException(SR.BadAsyncResult, nameof(asyncResult));
System\Transactions\DtcProxyShim\DtcProxyShimFactory.cs (2)
71throw new PlatformNotSupportedException(SR.DistributedNotSupportedOn32Bits); 82throw new NotSupportedException(SR.ImplicitDistributedTransactionsDisabled);
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\Oletx\DtcTransactionManager.cs (3)
49throw new NotSupportedException(SR.ProxyCannotSupportMultipleNodeNames); 60throw new NotSupportedException(SR.CannotSupportNodeNameSpecification); 67throw TransactionManagerCommunicationException.Create(SR.TransactionManagerCommunicationException, ex);
System\Transactions\Oletx\OletxEnlistment.cs (2)
165etwLog.InternalError(SR.OletxEnlistmentUnexpectedTransactionStatus); 169SR.OletxEnlistmentUnexpectedTransactionStatus, null, DistributedTxId);
System\Transactions\Oletx\OletxResourceManager.cs (11)
301throw TransactionManagerCommunicationException.Create(SR.TraceSourceOletx, null); 320SR.OletxTooManyEnlistments, 353throw new ArgumentException(SR.InvalidArgument, nameof(prepareInfo)); 360throw TransactionException.Create(SR.ResourceManagerIdDoesNotMatchRecoveryInformation, null); 373throw new COMException(SR.DtcTransactionManagerUnavailable, OletxHelper.XACT_E_CONNECTION_DOWN); 505SR.UnexpectedTimerFailure, 571throw TransactionException.Create(SR.InternalError, null); 613throw TransactionException.Create(SR.InternalError, null); 709throw TransactionException.Create(SR.InternalError, null); 749SR.UnexpectedTimerFailure, 763SR.UnexpectedTimerFailure,
System\Transactions\Oletx\OletxTransaction.cs (15)
137throw new ArgumentException(SR.InvalidArgument, nameof(serializationInfo)); 156etwLog.InternalError(SR.UnableToDeserializeTransaction); 159throw TransactionException.Create(SR.UnableToDeserializeTransactionInternalError, null); 267throw TransactionException.Create(SR.TooLate, null, DistributedTxId); 298throw TransactionException.Create(SR.TooLate, null, DistributedTxId); 333throw TransactionException.Create(SR.TooLate, null, DistributedTxId); 376SR.TransactionAborted, RealOletxTransaction.InnerException, DistributedTxId); 381SR.TransactionIndoubt, RealOletxTransaction.InnerException, DistributedTxId); 385throw TransactionException.Create(SR.TransactionAlreadyOver, null, DistributedTxId); 555throw TransactionException.Create(SR.CannotGetTransactionIdentifier, null); 609throw TransactionInDoubtException.Create(SR.TransactionIndoubt, null, DistributedTxId); 994throw TransactionException.Create(SR.TransactionAlreadyOver, comException); 1014throw TransactionException.Create(SR.TransactionAlreadyOver, null, DistributedTxId); 1035throw TransactionException.Create(SR.TransactionAlreadyOver, null, DistributedTxId); 1072throw TransactionException.Create(SR.TransactionAlreadyOver, comException, DistributedTxId);
System\Transactions\Oletx\OletxTransactionManager.cs (19)
152Environment.FailFast(SR.InternalError); 167Environment.FailFast(SR.InternalError); 187Environment.FailFast(SR.InternalError); 237Environment.FailFast(SR.InternalError); 254Environment.FailFast(SR.InternalError); 268Environment.FailFast(SR.InternalError); 282Environment.FailFast(SR.InternalError); 296Environment.FailFast(SR.InternalError); 315Environment.FailFast(SR.InternalError); 324Environment.FailFast(SR.InternalError); 495throw new ArgumentException(SR.InvalidArgument, nameof(resourceManagerIdentifier)); 500throw new InvalidOperationException(SR.ReenlistAfterRecoveryComplete); 515throw new InvalidOperationException(SR.DuplicateRecoveryComplete); 555throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 586throw TransactionException.Create(SR.DtcTransactionManagerUnavailable, null); 593throw TransactionException.Create(SR.InternalError, null); 606SR.TransactionManagerCommunicationException, 612SR.NetworkTransactionsDisabled, 622? SR.TransactionAlreadyOver
System\Transactions\Oletx\OletxVolatileEnlistment.cs (22)
103throw TransactionException.Create(SR.TooLate, null); 340throw new InvalidOperationException(SR.InternalError); 372throw new InvalidOperationException(SR.InternalError); 404throw new InvalidOperationException(SR.InternalError); 500throw new InvalidOperationException(SR.InternalError); 524throw new InvalidOperationException(SR.InternalError); 575throw TransactionException.Create(SR.TooLate, null); 843throw new InvalidOperationException(SR.InternalError); 873throw new InvalidOperationException(SR.InternalError); 903throw new InvalidOperationException(SR.InternalError); 970throw new InvalidOperationException(SR.InternalError); 1076throw new InvalidOperationException(SR.InternalError); 1111throw new InvalidOperationException(SR.InternalError); 1157throw new InvalidOperationException(SR.InternalError); 1173throw new InvalidOperationException(SR.InternalError); 1240throw new InvalidOperationException(SR.InternalError); 1292throw new InvalidOperationException(SR.InternalError); 1308throw new InvalidOperationException(SR.InternalError); 1388throw new InvalidOperationException(SR.InternalError); 1423throw new InvalidOperationException(SR.InternalError); 1464throw new InvalidOperationException(SR.InternalError); 1490SR.VolEnlistNoRecoveryInfo,
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\TransactionInterop.cs (7)
99throw new ArgumentException(SR.InvalidArgument, nameof(cookie)); 158throw TransactionManagerCommunicationException.Create(SR.TraceSourceOletx, comException); 234throw new ArgumentException(SR.InvalidArgument, nameof(propagationToken)); 455throw new ArgumentException(SR.InvalidArgument, nameof(transactionNative)); 474throw new ArgumentException(SR.InvalidArgument, "transactionManager"); 503throw new ArgumentException(SR.InvalidArgument, nameof(propagationToken)); 540throw TransactionManagerCommunicationException.Create(SR.TraceSourceOletx, comException);
System\Transactions\TransactionManager.cs (8)
127throw new InvalidOperationException(SR.CurrentDelegateSet); 143throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 181throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation)); 190throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e); 198throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e); 232throw new ArgumentException(SR.InvalidRecoveryInformation, "recoveryInformation"); 241throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 402throw new InvalidOperationException(SR.ImplicitDistributedTransactionsCannotBeChanged);
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);