9 writes to Current
System.Data (1)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
1889SysTx.Transaction.Current = transaction;
System.ServiceModel (8)
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (4)
408Transaction.Current = result.completionTransaction; 430Transaction.Current = savedTransaction; 488Transaction.Current = this.transaction; 503Transaction.Current = savedTransaction;
System\ServiceModel\Channels\MsmqReceiveContext.cs (2)
170Transaction.Current = result.associatedTransaction; 183Transaction.Current = savedTransaction;
System\ServiceModel\Channels\MsmqReceiveHelper.cs (2)
349Transaction.Current = result.txCurrent; 367Transaction.Current = savedTransaction;
103 references to Current
ComSvcConfig (1)
ComplusEndpointConfigContainer.cs (1)
94Transaction.Current.Rollback();
System.Activities (7)
System\Activities\WorkflowApplication.cs (6)
1177Transaction ambientTransaction = Transaction.Current; 2292if (!this.persistenceManager.IsLocked && Transaction.Current != null) 3466Transaction currentTransaction = Transaction.Current; 4207Transaction currentTransaction = Transaction.Current; 4337Transaction currentTransaction = Transaction.Current; 5325Transaction currentTransaction = Transaction.Current;
System\Activities\WorkflowPersistenceContext.cs (1)
103Transaction ambientTransaction = Transaction.Current;
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
109if (Transaction.Current != null)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (2)
393SqlWorkflowInstanceStoreAsyncResult sqlWorkflowInstanceStoreAsyncResult = new TestDatabaseVersionAndRunAsyncResult(context, command, this, this.storeLock, Transaction.Current, timeout, targetVersion, callback, state); 400return BeginTryCommandInternal(context, command, Transaction.Current, timeout, callback, state);
System.Data (7)
fx\src\data\System\Data\Common\AdapterUtil.cs (4)
1883SysTx.Transaction transaction = SysTx.Transaction.Current; 1905bool result = (!SysES.ContextUtil.IsInTransaction && null == SysTx.Transaction.Current) 1906|| (SysES.ContextUtil.IsInTransaction && SysTx.Transaction.Current == (SysTx.Transaction)SysES.ContextUtil.SystemTransaction); 1918|| (!isEnterpriseServicesOK && null != SysTx.Transaction.Current)) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (1)
508EnlistTransaction(SysTx.Transaction.Current);
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
531GetOpenConnection().EnlistTransactionInternal(SysTx.Transaction.Current);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
765SysTx.Transaction currentTransaction = SysTx.Transaction.Current;
System.Data.Entity (1)
System\Data\Objects\ObjectContext.cs (1)
1451Transaction currentTransaction = Transaction.Current;
System.Data.Linq (8)
DataContext.cs (1)
496if (System.Transactions.Transaction.Current == null && this.provider.Transaction == null) {
SqlClient\SqlConnectionManager.cs (7)
46if (System.Transactions.Transaction.Current != null) { 47System.Transactions.Transaction.Current.TransactionCompleted += this.OnTransactionCompleted; 50if (this.transaction == null && System.Transactions.Transaction.Current != null && 51System.Transactions.Transaction.Current != systemTransaction) { 53systemTransaction = System.Transactions.Transaction.Current; 54this.connection.EnlistTransaction(System.Transactions.Transaction.Current); 130if (this.users.Count == 0 && this.autoClose && this.transaction == null && System.Transactions.Transaction.Current == null) {
System.Messaging (3)
System\Messaging\MessageQueue.cs (3)
4012System.Transactions.Transaction tx = System.Transactions.Transaction.Current; 4054System.Transactions.Transaction tx = System.Transactions.Transaction.Current; 4093System.Transactions.Transaction tx = System.Transactions.Transaction.Current;
System.Runtime.DurableInstancing (3)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (1)
914Transaction transaction = Transaction.Current;
System\Runtime\DurableInstancing\InstanceStore.cs (2)
84return InstancePersistenceContext.OuterExecute(handle, command, Transaction.Current, timeout); 104return InstancePersistenceContext.BeginOuterExecute(handle, command, Transaction.Current, timeout, callback, state);
System.ServiceModel (39)
System\ServiceModel\Channels\MsmqDecodeHelper.cs (1)
243channel = new MsmqInputSessionChannel(listener, Transaction.Current, receiveContext);
System\ServiceModel\Channels\MsmqDefaultLockingQueue.cs (6)
177if (Transaction.Current != null && Transaction.Current.TransactionInformation.Status != System.Transactions.TransactionStatus.Active) 197if (Transaction.Current == null) 258if (!this.dtcTransMap.TryGetValue(Transaction.Current.TransactionInformation.DistributedIdentifier, out transMsgs)) 261this.dtcTransMap.Add(Transaction.Current.TransactionInformation.DistributedIdentifier, transMsgs); 263Transaction.Current.TransactionCompleted += this.transactionCompletedHandler;
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (9)
271if (Transaction.Current == null) 278this.associatedTx = Transaction.Current; 284if (this.associatedTx != Transaction.Current) 291if (TransactionStatus.Active != Transaction.Current.TransactionInformation.Status) 303if (this.associatedTx != Transaction.Current) 310if (TransactionStatus.Active != Transaction.Current.TransactionInformation.Status) 380this.completionTransaction = Transaction.Current; 407Transaction savedTransaction = Transaction.Current; 484Transaction savedTransaction = Transaction.Current;
System\ServiceModel\Channels\MsmqInputSessionChannelListener.cs (2)
75if (!this.ReceiveParameters.ReceiveContextSettings.Enabled && (Transaction.Current == null)) 129if (!this.ReceiveParameters.ReceiveContextSettings.Enabled && (Transaction.Current == null))
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (4)
160if (null == Transaction.Current) 162this.associatedTx = Transaction.Current; 212if (this.associatedTx != Transaction.Current) 218if (TransactionStatus.Active != Transaction.Current.TransactionInformation.Status)
System\ServiceModel\Channels\MsmqQueue.cs (1)
602Transaction transaction = Transaction.Current;
System\ServiceModel\Channels\MsmqReceiveContext.cs (3)
133if (Transaction.Current != null) 135this.associatedTransaction = Transaction.Current; 169savedTransaction = Transaction.Current;
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (4)
89if (Transaction.Current != null) 92if (!this.transMessages.TryGetValue(Transaction.Current.TransactionInformation.DistributedIdentifier, out transMsgs)) 95this.transMessages.Add(Transaction.Current.TransactionInformation.DistributedIdentifier, transMsgs); 97Transaction.Current.TransactionCompleted += this.transactionCompletedHandler;
System\ServiceModel\Channels\MsmqReceiveHelper.cs (4)
166if (null != Transaction.Current) 170Transaction.Current.Rollback(); 338this.txCurrent = Transaction.Current; 348Transaction savedTransaction = Transaction.Current;
System\ServiceModel\Channels\ReceiveContext.cs (4)
171if (!success || Transaction.Current == null) 340if (Transaction.Current != null) 342Transaction.Current.EnlistVolatile(new EnlistmentNotifications(this), EnlistmentOptions.None); 527this.transaction = Transaction.Current;
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
209System.ServiceModel.Channels.TransactionFlowProperty.Set(Transaction.Current, rpc.Request);
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (3)
663RegisterForTransactionNotification(Transaction.Current); 669RegisterForTransactionNotification(Transaction.Current); 713if (Transaction.Current != null)
System.ServiceModel.Activities (11)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (1)
303this.transaction = Transaction.Current;
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
1045Transaction currentTransaction = Transaction.Current;
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (5)
522return new TransactionWaitAsyncResult(Transaction.Current, this, timeout, callback, state); 800Transaction currentTransaction = Transaction.Current; 988Transaction currentTransaction = Transaction.Current; 1150Transaction currentTransaction = Transaction.Current; 1337Transaction currentTransaction = Transaction.Current;
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
2343attachedTransaction.CurrentTransaction != (useThreadTransaction ? Transaction.Current : ambientTransaction)) 3404Transaction currentTransaction = Transaction.Current;
System\ServiceModel\Activities\WorkflowControlClient.cs (1)
114return this.SupportsTransactedInvoke && Transaction.Current != null;
System\ServiceModel\Activities\WorkflowUpdateableControlClient.cs (1)
120return this.SupportsTransactedInvoke && Transaction.Current != null;
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\MessageRpc.cs (1)
85this.transaction = Transaction.Current;
System.Workflow.Runtime (14)
Hosting\DefaultWorkflowTransactionService.cs (1)
95if (null != Transaction.Current)
Hosting\SharedConnectionWorkflowTransactionService.cs (2)
171if (null == Transaction.Current) 186tx = Transaction.Current.DependentClone(DependentCloneOption.BlockCommitUntilComplete);
Hosting\WorkflowTransactionService.cs (2)
25if (null == Transaction.Current) 28tx = Transaction.Current.DependentClone(DependentCloneOption.BlockCommitUntilComplete);
System\Activities\Statements\Interop.cs (6)
848if (Transaction.Current != null && 849Transaction.Current.TransactionInformation.Status == TransactionStatus.Active) 854enlistment = new InteropEnlistment(Transaction.Current, resourceManager); 855Transaction.Current.EnlistVolatile(enlistment, EnlistmentOptions.EnlistDuringPrepareRequired); 1729this.CommittedResourceManagers.Add(Transaction.Current, this.ResourceManagers); 1731Transaction.Current.TransactionCompleted += new TransactionCompletedEventHandler(Current_TransactionCompleted);
VolatileResourceManager.cs (1)
58Transaction transaction = Transaction.Current;
WorkflowExecutor.cs (2)
2156if (null == Transaction.Current) 2294if (null == Transaction.Current)
System.WorkflowServices (2)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (2)
931if (this.durableInstance.saveStateInOperationTransaction && Transaction.Current != null) 933this.durableInstance.clonedTransaction = Transaction.Current.DependentClone(DependentCloneOption.BlockCommitUntilComplete);