215 references to SR
System.Transactions.Local (215)
System\Transactions\CommittableTransaction.cs (1)
166
throw new ArgumentException(
SR
.BadAsyncResult, nameof(asyncResult));
System\Transactions\DtcProxyShim\DtcProxyShimFactory.cs (2)
71
throw new PlatformNotSupportedException(
SR
.DistributedNotSupportedOn32Bits);
82
throw new NotSupportedException(
SR
.ImplicitDistributedTransactionsDisabled);
System\Transactions\EnterpriseServices.cs (1)
44
throw new PlatformNotSupportedException(
SR
.EsNotSupported);
System\Transactions\InternalTransaction.cs (3)
216
throw new InvalidOperationException(
SR
.PromoterTypeInvalid);
227
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, _promoterType.ToString()), _innerException);
System\Transactions\Oletx\DtcTransactionManager.cs (3)
49
throw new NotSupportedException(
SR
.ProxyCannotSupportMultipleNodeNames);
60
throw new NotSupportedException(
SR
.CannotSupportNodeNameSpecification);
67
throw TransactionManagerCommunicationException.Create(
SR
.TransactionManagerCommunicationException, ex);
System\Transactions\Oletx\OletxEnlistment.cs (2)
165
etwLog.InternalError(
SR
.OletxEnlistmentUnexpectedTransactionStatus);
169
SR
.OletxEnlistmentUnexpectedTransactionStatus, null, DistributedTxId);
System\Transactions\Oletx\OletxResourceManager.cs (11)
301
throw TransactionManagerCommunicationException.Create(
SR
.TraceSourceOletx, null);
320
SR
.OletxTooManyEnlistments,
353
throw new ArgumentException(
SR
.InvalidArgument, nameof(prepareInfo));
360
throw TransactionException.Create(
SR
.ResourceManagerIdDoesNotMatchRecoveryInformation, null);
373
throw new COMException(
SR
.DtcTransactionManagerUnavailable, OletxHelper.XACT_E_CONNECTION_DOWN);
505
SR
.UnexpectedTimerFailure,
571
throw TransactionException.Create(
SR
.InternalError, null);
613
throw TransactionException.Create(
SR
.InternalError, null);
709
throw TransactionException.Create(
SR
.InternalError, null);
749
SR
.UnexpectedTimerFailure,
763
SR
.UnexpectedTimerFailure,
System\Transactions\Oletx\OletxTransaction.cs (15)
137
throw new ArgumentException(
SR
.InvalidArgument, nameof(serializationInfo));
156
etwLog.InternalError(
SR
.UnableToDeserializeTransaction);
159
throw TransactionException.Create(
SR
.UnableToDeserializeTransactionInternalError, null);
267
throw TransactionException.Create(
SR
.TooLate, null, DistributedTxId);
298
throw TransactionException.Create(
SR
.TooLate, null, DistributedTxId);
333
throw TransactionException.Create(
SR
.TooLate, null, DistributedTxId);
376
SR
.TransactionAborted, RealOletxTransaction.InnerException, DistributedTxId);
381
SR
.TransactionIndoubt, RealOletxTransaction.InnerException, DistributedTxId);
385
throw TransactionException.Create(
SR
.TransactionAlreadyOver, null, DistributedTxId);
555
throw TransactionException.Create(
SR
.CannotGetTransactionIdentifier, null);
609
throw TransactionInDoubtException.Create(
SR
.TransactionIndoubt, null, DistributedTxId);
994
throw TransactionException.Create(
SR
.TransactionAlreadyOver, comException);
1014
throw TransactionException.Create(
SR
.TransactionAlreadyOver, null, DistributedTxId);
1035
throw TransactionException.Create(
SR
.TransactionAlreadyOver, null, DistributedTxId);
1072
throw TransactionException.Create(
SR
.TransactionAlreadyOver, comException, DistributedTxId);
System\Transactions\Oletx\OletxTransactionManager.cs (19)
152
Environment.FailFast(
SR
.InternalError);
167
Environment.FailFast(
SR
.InternalError);
187
Environment.FailFast(
SR
.InternalError);
237
Environment.FailFast(
SR
.InternalError);
254
Environment.FailFast(
SR
.InternalError);
268
Environment.FailFast(
SR
.InternalError);
282
Environment.FailFast(
SR
.InternalError);
296
Environment.FailFast(
SR
.InternalError);
315
Environment.FailFast(
SR
.InternalError);
324
Environment.FailFast(
SR
.InternalError);
495
throw new ArgumentException(
SR
.InvalidArgument, nameof(resourceManagerIdentifier));
500
throw new InvalidOperationException(
SR
.ReenlistAfterRecoveryComplete);
515
throw new InvalidOperationException(
SR
.DuplicateRecoveryComplete);
555
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
586
throw TransactionException.Create(
SR
.DtcTransactionManagerUnavailable, null);
593
throw TransactionException.Create(
SR
.InternalError, null);
606
SR
.TransactionManagerCommunicationException,
612
SR
.NetworkTransactionsDisabled,
622
?
SR
.TransactionAlreadyOver
System\Transactions\Oletx\OletxVolatileEnlistment.cs (22)
103
throw TransactionException.Create(
SR
.TooLate, null);
340
throw new InvalidOperationException(
SR
.InternalError);
372
throw new InvalidOperationException(
SR
.InternalError);
404
throw new InvalidOperationException(
SR
.InternalError);
500
throw new InvalidOperationException(
SR
.InternalError);
524
throw new InvalidOperationException(
SR
.InternalError);
575
throw TransactionException.Create(
SR
.TooLate, null);
843
throw new InvalidOperationException(
SR
.InternalError);
873
throw new InvalidOperationException(
SR
.InternalError);
903
throw new InvalidOperationException(
SR
.InternalError);
970
throw new InvalidOperationException(
SR
.InternalError);
1076
throw new InvalidOperationException(
SR
.InternalError);
1111
throw new InvalidOperationException(
SR
.InternalError);
1157
throw new InvalidOperationException(
SR
.InternalError);
1173
throw new InvalidOperationException(
SR
.InternalError);
1240
throw new InvalidOperationException(
SR
.InternalError);
1292
throw new InvalidOperationException(
SR
.InternalError);
1308
throw new InvalidOperationException(
SR
.InternalError);
1388
throw new InvalidOperationException(
SR
.InternalError);
1423
throw new InvalidOperationException(
SR
.InternalError);
1464
throw new InvalidOperationException(
SR
.InternalError);
1490
SR
.VolEnlistNoRecoveryInfo,
System\Transactions\Transaction.cs (6)
169
throw new InvalidOperationException(
SR
.TransactionScopeComplete);
198
throw new InvalidOperationException(
SR
.CannotSetCurrent);
485
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
533
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
907
throw new ArgumentException(
SR
.PromoterTypeInvalid, nameof(promoterType));
946
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
System\Transactions\TransactionException.cs (36)
35
return Create(
SR
.TransactionStateException, innerException);
40
string messagewithTxId =
SR
.EnlistmentStateException;
42
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
102
return new TransactionException(
SR
.Format(
SR
.DistributedTxIDInTransactionException, message, distributedTxId));
111
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
118
return Create(
SR
.TransactionStateException, innerException, distributedTxId);
123
string messagewithTxId =
SR
.TransactionAlreadyCompleted;
125
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
140
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
158
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
176
public TransactionAbortedException() : base(
SR
.TransactionAborted)
184
public TransactionAbortedException(string? message) : base(message ??
SR
.TransactionAborted)
193
public TransactionAbortedException(string? message, Exception? innerException) : base(message ??
SR
.TransactionAborted, innerException)
201
internal TransactionAbortedException(Exception? innerException) : base(
SR
.TransactionAborted, innerException)
207
SR
.Format(
SR
.DistributedTxIDInTransactionException,
SR
.TransactionAborted, distributedTxId)
208
:
SR
.TransactionAborted, innerException)
235
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
254
public TransactionInDoubtException() : base(
SR
.TransactionIndoubt)
262
public TransactionInDoubtException(string? message) : base(message ??
SR
.TransactionIndoubt)
271
public TransactionInDoubtException(string? message, Exception? innerException) : base(message ??
SR
.TransactionIndoubt, innerException)
307
return Create(
SR
.TransactionManagerCommunicationException, innerException);
313
public TransactionManagerCommunicationException() : base(
SR
.TransactionManagerCommunicationException)
321
public TransactionManagerCommunicationException(string? message) : base(message ??
SR
.TransactionManagerCommunicationException)
333
) : base(message ??
SR
.TransactionManagerCommunicationException, innerException)
356
public TransactionPromotionException() : this(
SR
.PromotionFailed)
364
public TransactionPromotionException(string? message) : base(message ??
SR
.PromotionFailed)
373
public TransactionPromotionException(string? message, Exception? innerException) : base(message ??
SR
.PromotionFailed, innerException)
System\Transactions\TransactionInterop.cs (7)
99
throw new ArgumentException(
SR
.InvalidArgument, nameof(cookie));
158
throw TransactionManagerCommunicationException.Create(
SR
.TraceSourceOletx, comException);
234
throw new ArgumentException(
SR
.InvalidArgument, nameof(propagationToken));
455
throw new ArgumentException(
SR
.InvalidArgument, nameof(transactionNative));
474
throw new ArgumentException(
SR
.InvalidArgument, "transactionManager");
503
throw new ArgumentException(
SR
.InvalidArgument, nameof(propagationToken));
540
throw TransactionManagerCommunicationException.Create(
SR
.TraceSourceOletx, comException);
System\Transactions\TransactionManager.cs (8)
127
throw new InvalidOperationException(
SR
.CurrentDelegateSet);
143
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
181
throw new ArgumentException(
SR
.UnrecognizedRecoveryInformation, nameof(recoveryInformation));
190
throw new ArgumentException(
SR
.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e);
198
throw new ArgumentException(
SR
.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e);
232
throw new ArgumentException(
SR
.InvalidRecoveryInformation, "recoveryInformation");
241
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
402
throw new InvalidOperationException(
SR
.ImplicitDistributedTransactionsCannotBeChanged);
System\Transactions\TransactionScope.cs (11)
215
throw new ArgumentException(
SR
.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions));
297
throw new ArgumentException(
SR
.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions));
528
throw new InvalidOperationException(
SR
.InvalidScopeThread);
564
TraceSourceType.TraceSourceBase,
SR
.TransactionScopeInvalidNesting, null, rollbackTransaction.DistributedTxId);
600
exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.TransactionScopeIncorrectCurrent, null,
627
exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.TransactionScopeInvalidNesting, null,
701
exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.TransactionScopeIncorrectCurrent, null,
839
throw TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.DisposeScope, null);
860
throw TransactionException.Create(
SR
.InternalError +
SR
.TransactionScopeTimerObjectInvalid, null);
1156
throw new NotSupportedException(
SR
.AsyncFlowAndESInteropNotSupported);
System\Transactions\TransactionState.cs (61)
593
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
1250
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
1498
return TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
1626
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
1632
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
1638
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
2064
tx._innerException ??= new TimeoutException(
SR
.TraceTransactionTimeout);
2152
SR
.CannotPromoteSnapshot, null);
2665
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2671
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2677
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2683
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2839
SR
.UnexpectedFailureOfThreadPool,
2965
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
2971
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
2977
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3027
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3039
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3179
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3184
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3210
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3216
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3222
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3254
SR
.CannotPromoteSnapshot, null, tx.DistributedTxId);
3460
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3472
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3573
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3605
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
3802
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3812
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3821
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3826
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3831
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3901
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3911
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3920
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3925
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3930
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3950
SR
.UnexpectedFailureOfThreadPool,
4066
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4071
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4076
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4100
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4110
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4198
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4203
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4212
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4217
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4222
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4227
throw TransactionInDoubtException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4232
throw TransactionInDoubtException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4412
SR
.PromotedReturnedInvalidValue,
4430
SR
.PromotedReturnedInvalidValue,
4453
SR
.PromotedReturnedInvalidValue,
4480
SR
.PromotedReturnedInvalidValue,
4491
SR
.PromotedTransactionExists,
4533
SR
.InvalidIPromotableSinglePhaseNotificationSpecified,
4576
SR
.InvalidIPromotableSinglePhaseNotificationSpecified,
System\Transactions\TransactionTable.cs (2)
241
SR
.UnexpectedTimerFailure,
448
SR
.UnexpectedTimerFailure,
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
99
SR
.UnexpectedFailureOfThreadPool,
138
SR
.UnexpectedFailureOfThreadPool,
177
SR
.UnexpectedFailureOfThreadPool,
216
SR
.UnexpectedFailureOfThreadPool,
System\Transactions\VolatileEnlistmentState.cs (1)
72
SR
.VolEnlistNoRecoveryInfo, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);