3 types derived from Transaction
System.Transactions (3)
System\Transactions\CommittableTransaction.cs (1)
20public sealed class CommittableTransaction : Transaction, IAsyncResult
System\Transactions\DependentTransaction.cs (1)
19public sealed class DependentTransaction : Transaction
System\Transactions\SubordinateTransaction.cs (1)
19public sealed class SubordinateTransaction : Transaction
3 instantiations of Transaction
System.Transactions (3)
System\Transactions\Transaction.cs (1)
1014Transaction clone = new Transaction(this.isoLevel,
System\Transactions\TransactionInterop.cs (1)
702transaction = new Transaction( oleTx );
System\Transactions\TransactionManager.cs (1)
669tx = new Transaction( oletx );
611 references to Transaction
ComSvcConfig (1)
ComplusEndpointConfigContainer.cs (1)
94Transaction.Current.Rollback();
System.Activities (31)
System\Activities\NativeActivityTransactionContext.cs (1)
24public void SetRuntimeTransaction(Transaction transaction)
System\Activities\Runtime\ActivityExecutor.cs (6)
506public Transaction CurrentTransaction 1236public void SetTransaction(RuntimeTransactionHandle handle, Transaction transaction, ActivityInstance isolationScope, ActivityInstance transactionOwner) 4061Transaction original = this.runtimeTransaction.OriginalTransaction; 4371public RuntimeTransactionData(RuntimeTransactionHandle handle, Transaction transaction, ActivityInstance isolationScope) 4422public Transaction ClonedTransaction 4428public Transaction OriginalTransaction
System\Activities\RuntimeTransactionHandle.cs (6)
30Transaction rootTransaction; 38public RuntimeTransactionHandle(Transaction rootTransaction) 132public Transaction GetCurrentTransaction(NativeActivityContext context) 139public Transaction GetCurrentTransaction(CodeActivityContext context) 146public Transaction GetCurrentTransaction(AsyncCodeActivityContext context) 151Transaction GetCurrentTransactionCore(ActivityContext context)
System\Activities\Statements\TransactionScope.cs (1)
325Transaction transaction = transactionHandle.GetCurrentTransaction(context);
System\Activities\WorkflowApplication.cs (11)
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 (6)
14Transaction clonedTransaction; 21public WorkflowPersistenceContext(bool transactionRequired, Transaction transactionToUse, TimeSpan transactionTimeout) 35public Transaction PublicTransaction 101static Transaction CloneAmbientTransaction() 103Transaction ambientTransaction = Transaction.Current;
System.Activities.DurableInstancing (21)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
34Transaction currentTransaction,
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (1)
24Transaction currentTransaction,
System\Activities\DurableInstancing\DetectActivatableWorkflowsAsyncResult.cs (1)
25Transaction currentTransaction,
System\Activities\DurableInstancing\DetectRunnableInstancesAsyncResult.cs (1)
25Transaction currentTransaction,
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (1)
24Transaction currentTransaction,
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
32Transaction currentTransaction,
System\Activities\DurableInstancing\LoadWorkflowByKeyAsyncResult.cs (1)
20Transaction currentTransaction,
System\Activities\DurableInstancing\QueryActivatableWorkflowAsyncResult.cs (1)
26Transaction currentTransaction,
System\Activities\DurableInstancing\RecoverInstanceLocksAsyncResult.cs (1)
24Transaction currentTransaction,
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
52Transaction currentTransaction,
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
109if (Transaction.Current != null)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (3)
393SqlWorkflowInstanceStoreAsyncResult sqlWorkflowInstanceStoreAsyncResult = new TestDatabaseVersionAndRunAsyncResult(context, command, this, this.storeLock, Transaction.Current, timeout, targetVersion, callback, state); 400return BeginTryCommandInternal(context, command, Transaction.Current, timeout, callback, state); 403internal IAsyncResult BeginTryCommandInternal(InstancePersistenceContext context, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
28Transaction currentTransaction, 44Transaction currentTransaction,
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (2)
22Transaction currentTransaction; 30Transaction currentTransaction,
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (1)
24Transaction currentTransaction,
System\Activities\DurableInstancing\UnlockInstanceAsyncResult.cs (1)
23Transaction currentTransaction,
System\Activities\DurableInstancing\WorkflowOwnerAsyncResult.cs (1)
24Transaction currentTransaction,
System.Data (88)
fx\src\data\Microsoft\SqlServer\Server\SmiContext.cs (1)
28internal abstract System.Transactions.Transaction ContextTransaction { get; }
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (1)
35Transaction associatedTransaction, // SysTx transaction associated with request, if any.
fx\src\data\System\Data\Common\AdapterUtil.cs (10)
1882static internal SysTx.Transaction GetCurrentTransaction() { 1883SysTx.Transaction transaction = SysTx.Transaction.Current; 1887static internal void SetCurrentTransaction(SysTx.Transaction transaction) 1889SysTx.Transaction.Current = transaction; 1892static internal SysTx.IDtcTransaction GetOletxTransaction(SysTx.Transaction transaction){ 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\Common\DBConnection.cs (1)
140virtual public void EnlistTransaction(System.Transactions.Transaction transaction) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (2)
508EnlistTransaction(SysTx.Transaction.Current); 849internal void Open_EnlistTransaction(SysTx.Transaction transaction) {
fx\src\data\System\Data\Odbc\OdbcConnectionOpen.cs (2)
56override protected void Activate(SysTx.Transaction transaction) { 80override public void EnlistTransaction(SysTx.Transaction transaction) {
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
531GetOpenConnection().EnlistTransactionInternal(SysTx.Transaction.Current);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (3)
240override protected void Activate(SysTx.Transaction transaction) { 307override public void EnlistTransaction(SysTx.Transaction transaction) { // MDAC 78997 317internal void EnlistTransactionInternal(SysTx.Transaction transaction) {
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (2)
33override protected void Activate(SysTx.Transaction transaction) { 53override public void EnlistTransaction(SysTx.Transaction transaction) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (2)
245Transactions.Transaction originalTransaction = ADP.GetCurrentTransaction(); 248ADP.SetCurrentTransaction(retry.Task.AsyncState as Transactions.Transaction);
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (3)
220SysTx.Transaction indigoTransaction = null; 239override public void EnlistTransaction(SysTx.Transaction transaction) { 253SysTx.Transaction enlistedTransaction = innerConnection.EnlistedTransaction;
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (18)
52private SysTx.Transaction _enlistedTransaction; // [usage must be thread-safe] the transaction that we're enlisted in, either manually or automatically 58private SysTx.Transaction _enlistedTransactionOriginal; 87protected internal SysTx.Transaction EnlistedTransaction { 92SysTx.Transaction currentEnlistedTransaction = _enlistedTransaction; 104SysTx.Transaction valueClone = null; 105SysTx.Transaction previousTransactionClone = null; 184SysTx.Transaction currentEnlistedTransactionOriginal = _enlistedTransactionOriginal; 345abstract protected void Activate(SysTx.Transaction transaction); 347internal void ActivateConnection(SysTx.Transaction transaction) { 591SysTx.Transaction enlistedTransaction = Interlocked.Exchange(ref _enlistedTransaction, null); 615abstract public void EnlistTransaction(SysTx.Transaction transaction); 773virtual protected void CleanupTransactionOnCompletion(SysTx.Transaction transaction) { 777SysTx.Transaction enlistedTransaction = EnlistedTransaction; 794internal void DetachTransaction(SysTx.Transaction transaction, bool isExplicitlyReleasing) { 804SysTx.Transaction currentEnlistedTransaction = _enlistedTransaction; 818internal void CleanupConnectionOnTransactionCompletion(SysTx.Transaction transaction) { 828SysTx.Transaction transaction = e.Transaction; 840private void TransactionOutcomeEnlist(SysTx.Transaction transaction) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (14)
44private SysTx.Transaction _transaction; 45internal TransactedConnectionList(int initialAllocation, SysTx.Transaction tx) : base(initialAllocation) { 71Dictionary<SysTx.Transaction, TransactedConnectionList> _transactedCxns; 83_transactedCxns = new Dictionary<SysTx.Transaction, TransactedConnectionList> (); 100internal DbConnectionInternal GetTransactedObject(SysTx.Transaction transaction) 144internal void PutTransactedObject(SysTx.Transaction transaction, DbConnectionInternal transactedObject) { 178SysTx.Transaction transactionClone = null; 243internal void TransactionEnded(SysTx.Transaction transaction, DbConnectionInternal transactedObject) 940SysTx.Transaction transaction = obj.EnlistedTransaction; 1122ADP.SetCurrentTransaction(next.Completion.Task.AsyncState as Transactions.Transaction); 1225SysTx.Transaction transaction = null; 1406private void PrepareConnection(DbConnection owningObject, DbConnectionInternal obj, SysTx.Transaction transaction) { 1475private DbConnectionInternal GetFromTransactedPool(out SysTx.Transaction transaction) { 1775internal void TransactionEnded(SysTx.Transaction transaction, DbConnectionInternal transactedObject) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
3159SysTx.Transaction transaction; 4593SysTx.Transaction transaction;
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1403System.Transactions.Transaction transaction = ADP.GetCurrentTransaction();
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (4)
40private SysTx.Transaction _atomicTransaction; 44internal SqlDelegatedTransaction(SqlInternalConnection connection, SysTx.Transaction tx) { 69internal SysTx.Transaction Transaction 426internal void TransactionEnded(SysTx.Transaction transaction) {
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (6)
263override protected void CleanupTransactionOnCompletion(SysTx.Transaction transaction) { 343protected void Enlist(SysTx.Transaction tx) { 372SysTx.Transaction enlistedTransaction = EnlistedTransaction; 385private void EnlistNonNull(SysTx.Transaction tx) { 595override public void EnlistTransaction(SysTx.Transaction transaction) { 698static private byte[] GetTransactionCookie(SysTx.Transaction transaction, byte[] whereAbouts) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (7)
207private SysTx.Transaction ContextTransaction 213private SysTx.Transaction InternalEnlistedTransaction 220SysTx.Transaction tx = EnlistedTransaction; 231override protected void Activate(SysTx.Transaction transaction) 248SysTx.Transaction currentSystemTransaction = ADP.GetCurrentTransaction(); // NOTE: Must be first to ensure _smiContext.ContextTransaction is set! 249SysTx.Transaction contextTransaction = _smiContext.ContextTransaction; // returns the transaction that was handed to SysTx that wraps the ContextTransactionId. 419internal void GetCurrentTransactionPair(out long transactionId, out SysTx.Transaction transaction) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (5)
757SysTx.Transaction enlistedTransaction = EnlistedTransaction; 765SysTx.Transaction currentTransaction = SysTx.Transaction.Current; 817override protected void Activate(SysTx.Transaction transaction) { 1250SysTx.Transaction tx = ADP.GetCurrentTransaction();
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
1854typeof(SysTx.Transaction).GetMethod("EnlistPromotableSinglePhase", new Type[] {typeof(SysTx.IPromotableSinglePhaseNotification), typeof(Guid)})); 1857typeof(SysTx.Transaction).GetMethod("SetDistributedTransactionIdentifier", new Type[] { typeof(SysTx.IPromotableSinglePhaseNotification), typeof(Guid) })); 1860typeof(SysTx.Transaction).GetMethod("GetPromotedToken"));
System.Data.Entity (5)
System\Data\EntityClient\EntityConnection.cs (2)
63private Transaction _enlistedTransaction; 739public override void EnlistTransaction(Transaction transaction)
System\Data\Objects\ObjectContext.cs (3)
148private Transaction _lastTransaction; 1451Transaction currentTransaction = Transaction.Current;
System.Data.Linq (9)
DataContext.cs (1)
496if (System.Transactions.Transaction.Current == null && this.provider.Transaction == null) {
SqlClient\SqlConnectionManager.cs (8)
23private Transaction systemTransaction; 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 (6)
System\Messaging\MessageQueue.cs (6)
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 (23)
System\Runtime\DurableInstancing\InstanceHandle.cs (6)
453internal InstancePersistenceContext AcquireExecutionContext(Transaction hostTransaction, TimeSpan timeout) 472internal IAsyncResult BeginAcquireExecutionContext(Transaction hostTransaction, TimeSpan timeout, AsyncCallback callback, object state) 790public AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending, AsyncCallback callback, object state) 796public AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending) 802AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending, bool synchronous, AsyncCallback callback, object state) 883public Transaction HostTransaction { get; private set; }
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (11)
21Transaction transaction; 27internal InstancePersistenceContext(InstanceHandle handle, Transaction transaction) 747internal Transaction Transaction 769Transaction clone = this.myTransaction.Clone(); 806internal static InstanceView OuterExecute(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout) 824internal static IAsyncResult BeginOuterExecute(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 914Transaction transaction = Transaction.Current; 958public ExecuteAsyncResult(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1027public ExecuteAsyncResult(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout) 1132public void SetInteriorTransaction(Transaction interiorTransaction, bool needsCommit)
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\Runtime\TransactedAsyncResult.cs (2)
96protected IDisposable PrepareTransactionalCall(Transaction transaction) 119public TransactionSignalScope(TransactedAsyncResult result, Transaction transaction)
System\Runtime\TransactionHelper.cs (2)
11public static void ThrowIfTransactionAbortedOrInDoubt(Transaction transaction) 30public static TransactionScope CreateTransactionScope(Transaction transaction)
System.ServiceModel (145)
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 (22)
16Transaction associatedTx; 27public MsmqInputSessionChannel(MsmqInputSessionChannelListener listener, Transaction associatedTx, ReceiveContext sessiongramReceiveContext) 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) 371Transaction completionTransaction; 380this.completionTransaction = Transaction.Current; 407Transaction savedTransaction = Transaction.Current; 408Transaction.Current = result.completionTransaction; 430Transaction.Current = savedTransaction; 461Transaction transaction; 464public ReceiveContextTransactionEnlistment(MsmqInputSessionChannel channel, Transaction transaction, ReceiveContext receiveContext) 484Transaction savedTransaction = Transaction.Current; 488Transaction.Current = this.transaction; 503Transaction.Current = savedTransaction; 529Transaction transaction; 531public TransactionEnlistment(MsmqInputSessionChannel channel, Transaction transaction)
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 (7)
18Transaction associatedTx; 160if (null == Transaction.Current) 162this.associatedTx = Transaction.Current; 212if (this.associatedTx != Transaction.Current) 218if (TransactionStatus.Active != Transaction.Current.TransactionInformation.Status) 275Transaction transaction; 277public TransactionEnlistment(MsmqOutputSessionChannel channel, Transaction transaction)
System\ServiceModel\Channels\MsmqQueue.cs (2)
602Transaction transaction = Transaction.Current;
System\ServiceModel\Channels\MsmqReceiveContext.cs (7)
125Transaction associatedTransaction; 133if (Transaction.Current != null) 135this.associatedTransaction = Transaction.Current; 163Transaction savedTransaction = null; 169savedTransaction = Transaction.Current; 170Transaction.Current = result.associatedTransaction; 183Transaction.Current = savedTransaction;
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 (8)
166if (null != Transaction.Current) 170Transaction.Current.Rollback(); 327Transaction txCurrent; 338this.txCurrent = Transaction.Current; 348Transaction savedTransaction = Transaction.Current; 349Transaction.Current = result.txCurrent; 367Transaction.Current = savedTransaction;
System\ServiceModel\Channels\ReceiveContext.cs (5)
171if (!success || Transaction.Current == null) 340if (Transaction.Current != null) 342Transaction.Current.EnlistVolatile(new EnlistmentNotifications(this), EnlistmentOptions.None); 521Transaction transaction; 527this.transaction = Transaction.Current;
System\ServiceModel\Channels\TransactionChannel.cs (1)
182Transaction transaction = TransactionFlowProperty.TryGetTransaction(message);
System\ServiceModel\Channels\TransactionFlowProperty.cs (8)
19Transaction flowedTransaction; 26public Transaction Transaction 53static internal Transaction TryGetTransaction(Message message) 73static public void Set(Transaction transaction, Message message) 92Transaction flowedTransaction; 113internal Transaction Transaction 149static internal Transaction TryGetTransaction(Message message) 177static internal void Set(Transaction transaction, Message message)
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
227Transaction messageTransaction = null;
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (2)
89Transaction tx = null; 159Transaction txProxy = proxy.CurrentTransaction;
System\ServiceModel\ComIntegration\MessageUtil.cs (1)
55public static Transaction GetMessageTransaction(Message message)
System\ServiceModel\ComIntegration\TransactionProxy.cs (8)
80Transaction currentTransaction; 94public Transaction CurrentTransaction 126public void SetTransaction(Transaction transaction) 276Transaction transaction; 279Transaction transaction) 285public Transaction Transaction 323Transaction transaction; 334public void SetTransaction(Transaction transaction)
System\ServiceModel\Dispatcher\ChannelHandler.cs (4)
1532Transaction tx = CreateOrGetAttachedTransaction(); 1684Transaction CreateOrGetAttachedTransaction() 1692Transaction tx = this.acceptTransaction.Transaction; 1712bool TryTransactionalReceive(Transaction tx, out RequestContext request)
System\ServiceModel\Dispatcher\IInstanceTransaction.cs (1)
12Transaction GetTransactionForInstance(OperationContext operationContext);
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
209System.ServiceModel.Channels.TransactionFlowProperty.Set(Transaction.Current, rpc.Request);
System\ServiceModel\Dispatcher\ListenerHandler.cs (6)
195Transaction tx; 257Transaction tx; 296bool TransactedAccept(out Transaction tx) 746Transaction transaction; 748internal WrappedTransaction(Transaction transaction) 753internal Transaction Transaction
System\ServiceModel\Dispatcher\ReceiveContextRPCFacet.cs (6)
76public void Complete(ImmutableDispatchRuntime dispatchRuntime, ref MessageRpc rpc, TimeSpan timeout, Transaction transaction) 100public IAsyncResult BeginComplete(TimeSpan timeout, Transaction transaction, ChannelHandler channelHandler, AsyncCallback callback, object state) 188Transaction currentTransaction; 195Transaction transaction, 307public TransactionOutcomeListener(ReceiveContext receiveContext, Transaction transaction, ChannelHandler handler) 314public static void EnsureReceiveContextAbandonOnTransactionRollback(ReceiveContext receiveContext, Transaction transaction, ChannelHandler channelHandler)
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (1)
157internal Transaction Transaction
System\ServiceModel\Dispatcher\TransactionBehavior.cs (21)
128Transaction GetInstanceContextTransaction(ref MessageRpc rpc) 172Transaction contextTransaction = null; 202Transaction transaction = null; 428internal Transaction Current; 429internal Transaction Clone; 561Transaction clone = this.Clone; 622internal Transaction waiting; // waiting to become Single because Single is on his way out. 623internal Transaction Attached; 627Transaction current; // the one true transaction when Concurrency=false. 629Dictionary<Transaction, RemoveReferenceRM> pending; // When Concurrency=true, all the still pending guys. 757internal void CompletePendingTransaction(Transaction transaction, Exception error) 769internal static void Complete(Transaction transaction, Exception error) 803internal TransactionScope CreateTransactionScope(Transaction transaction) 830Transaction requestTransaction = rpc.Transaction.Current; 858internal void AddReference(ref MessageRpc rpc, Transaction tx, bool updateCallCount) 864this.pending = new Dictionary<Transaction, RemoveReferenceRM>(); 871this.pending = new Dictionary<Transaction, RemoveReferenceRM>(); 889internal void RemoveReference(Transaction tx) 946protected Transaction Transaction; 948protected VolatileBase(InstanceContext instanceContext, Transaction transaction) 990internal RemoveReferenceRM(InstanceContext instanceContext, Transaction tx, string operation)
System\ServiceModel\Transactions\OletxTransactionFormatter.cs (3)
21public override void WriteTransaction(Transaction transaction, Message message) 46public static uint GetTimeoutFromTransaction(Transaction transaction) 59public static void GetTransactionAttributes(Transaction transaction,
System\ServiceModel\Transactions\OleTxTransactionInfo.cs (3)
17public override Transaction UnmarshalTransaction() 19Transaction tx = UnmarshalPropagationToken(header.PropagationToken); 27public static Transaction UnmarshalPropagationToken(byte[] propToken)
System\ServiceModel\Transactions\TransactionCache.cs (5)
19class WsatExtendedInformationCache : TransactionCache<Transaction, WsatExtendedInformation> 21public static void Cache(Transaction tx, WsatExtendedInformation info) 28class WsatIncomingTransactionCache : TransactionCache<string, Transaction> 30public static void Cache(string identifier, Transaction tx) 44protected void AddEntry(Transaction transaction, T key, S value)
System\ServiceModel\Transactions\TransactionFormatter.cs (2)
71public abstract void WriteTransaction(Transaction transaction, Message message); 89public abstract Transaction UnmarshalTransaction();
System\ServiceModel\Transactions\WsatExtendedInformation.cs (1)
29public void TryCache(Transaction tx)
System\ServiceModel\Transactions\WsatProxy.cs (1)
44public Transaction UnmarshalTransaction(WsatTransactionInfo info)
System\ServiceModel\Transactions\WsatTransactionFormatter.cs (3)
51public override void WriteTransaction(Transaction transaction, Message message) 71void ForcePromotion(Transaction transaction) 127public void MarshalAsCoordinationContext(Transaction transaction,
System\ServiceModel\Transactions\WsatTransactionInfo.cs (2)
28public override Transaction UnmarshalTransaction() 30Transaction tx;
System.ServiceModel.Activation (4)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (4)
663RegisterForTransactionNotification(Transaction.Current); 669RegisterForTransactionNotification(Transaction.Current); 711void RegisterForTransactionNotification(Transaction transaction) 713if (Transaction.Current != null)
System.ServiceModel.Activities (85)
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (3)
163object[] inputs, Transaction currentTransaction, IInvokeReceivedNotification notification, TimeSpan timeout, AsyncCallback callback, object state) 183public Transaction GetTransactionForInstance(OperationContext operationContext) 185Transaction tx = null;
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (5)
187OperationContext operationContext, object[] inputs, Transaction currentTransaction, IInvokeReceivedNotification notification, 282Transaction transaction; 303this.transaction = Transaction.Current; 984Transaction currentTransaction; 988object[] inputs, OperationContext operationContext, Transaction currentTransaction, IInvokeReceivedNotification notification,
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (2)
1045Transaction currentTransaction = Transaction.Current;
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (12)
51Transaction lockingTransactionObject; 158internal Transaction LockingTransaction 522return new TransactionWaitAsyncResult(Transaction.Current, this, timeout, callback, state); 537internal bool QueueForTransactionLock(Transaction requestingTransaction, TransactionWaitAsyncResult txWaitAsyncResult) 800Transaction currentTransaction = Transaction.Current; 988Transaction currentTransaction = Transaction.Current; 1150Transaction currentTransaction = Transaction.Current; 1337Transaction currentTransaction = Transaction.Current;
System\ServiceModel\Activities\Dispatcher\PersistenceContextEnlistment.cs (2)
21Transaction transaction; 31internal PersistenceContextEnlistment(PersistenceContext context, Transaction transaction)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (9)
153public IAsyncResult BeginLoad(InstanceKey key, ICollection<InstanceKey> associatedKeys, Transaction transaction, 170public IAsyncResult BeginLoad(Guid instanceId, ICollection<InstanceKey> associatedKeys, Transaction transaction, bool loadAny, WorkflowIdentityKey updatedIdentity, 193ICollection<InstanceKey> associatedKeys, Transaction transaction, TimeSpan timeout, 210public IAsyncResult BeginLoadOrCreate(Guid instanceId, ICollection<InstanceKey> associatedKeys, Transaction transaction, 290public Transaction GetTransactionForInstance(InstanceKey instanceKey) 292Transaction result = null; 724readonly Transaction transaction; 747bool canCreateInstance, ICollection<InstanceKey> associatedKeys, Transaction transaction, bool loadAny, WorkflowIdentityKey updatedIdentity, 804static void PromoteTransaction(Transaction transactionToPromote)
System\ServiceModel\Activities\Dispatcher\TransactionContext.cs (3)
21Transaction currentTransaction; 24public TransactionContext(WorkflowServiceInstance durableInstance, Transaction currentTransaction) 34public Transaction CurrentTransaction
System\ServiceModel\Activities\Dispatcher\TransactionWaitAsyncResult.cs (3)
21internal TransactionWaitAsyncResult(Transaction transaction, PersistenceContext persistenceContext, TimeSpan timeout, AsyncCallback callback, object state) 81internal Transaction Transaction 142TransactionException CreateVolatileEnlistment(Transaction transactionToEnlist)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (35)
1149public IAsyncResult BeginTerminate(string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1161IAsyncResult BeginTerminate(Exception reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1173public IAsyncResult BeginCancel(Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1189public IAsyncResult BeginRun(Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1194public IAsyncResult BeginRun(Transaction transaction, string operationName, TimeSpan timeout, AsyncCallback callback, object state) 1474public IAsyncResult BeginSuspend(bool isUnlocked, string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1484public IAsyncResult BeginUnsuspend(Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1822bool ValidateStateForSuspend(Transaction transaction) 1836bool ValidateStateForUnsuspend(Transaction transaction) 1853bool ValidateStateForRun(Transaction transaction, string operationName) 1912bool ValidateStateForCancel(Transaction transaction) 1957bool ValidateStateForTerminate(Transaction transaction) 2062public IAsyncResult BeginAssociateInfrastructureKeys(ICollection<InstanceKey> associatedKeys, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 2332void Validate(string operationName, Transaction ambientTransaction, bool controlEndpoint) 2337void ValidateHelper(string operationName, Transaction ambientTransaction, bool useThreadTransaction, bool controlEndpoint) 2343attachedTransaction.CurrentTransaction != (useThreadTransaction ? Transaction.Current : ambientTransaction)) 2905readonly Transaction transaction; 2908public AssociateKeysAsyncResult(WorkflowServiceInstance workflow, ICollection<InstanceKey> associatedKeys, Transaction transaction, 3404Transaction currentTransaction = Transaction.Current; 4045protected SimpleOperationAsyncResult(WorkflowServiceInstance instance, Transaction transaction, AsyncCallback callback, object state) 4061protected Transaction OperationTransaction 4265TerminateAsyncResult(WorkflowServiceInstance instance, Exception reason, Transaction transaction, AsyncCallback callback, object state) 4271public static TerminateAsyncResult Create(WorkflowServiceInstance instance, Exception reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4518CancelAsyncResult(WorkflowServiceInstance instance, Transaction transaction, AsyncCallback callback, object state) 4523public static CancelAsyncResult Create(WorkflowServiceInstance instance, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4574RunAsyncResult(WorkflowServiceInstance instance, Transaction transaction, string operationName, AsyncCallback callback, object state) 4580public static RunAsyncResult Create(WorkflowServiceInstance instance, Transaction transaction, string operationName, TimeSpan timeout, AsyncCallback callback, object state) 4615SuspendAsyncResult(WorkflowServiceInstance instance, bool isUnlocked, string reason, Transaction transaction, AsyncCallback callback, object state) 4622public static SuspendAsyncResult Create(WorkflowServiceInstance instance, bool isUnlocked, string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 4729UnsuspendAsyncResult(WorkflowServiceInstance instance, Transaction transaction, AsyncCallback callback, object state) 4734public static UnsuspendAsyncResult Create(WorkflowServiceInstance instance, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 5563Transaction clonedTransaction; 5565public WorkflowPersistenceContext(WorkflowServiceInstance instance, bool transactionRequired, Transaction transactionToUse, TimeSpan transactionTimeout) 5581public Transaction PublicTransaction
System\ServiceModel\Activities\InternalReceiveMessage.cs (2)
410Transaction currentTransaction = handle.GetCurrentTransaction(executionContext); 1193public Transaction CurrentTransaction
System\ServiceModel\Activities\InternalSendMessage.cs (3)
1729Transaction transaction = null; 1754Transaction currentTransactionContext; 1761public OpenChannelAndSendMessageAsyncResult(InternalSendMessage internalSendMessage, SendMessageInstance instance, Transaction currentTransactionContext, AsyncCallback callback, object state)
System\ServiceModel\Activities\TransactedReceiveData.cs (1)
27public Transaction InitiatingTransaction
System\ServiceModel\Activities\WorkflowControlClient.cs (1)
114return this.SupportsTransactedInvoke && Transaction.Current != null;
System\ServiceModel\Activities\WorkflowOperationContext.cs (3)
70bool performanceCountersEnabled, bool propagateActivity, Transaction currentTransaction, 160public Transaction CurrentTransaction 201object[] inputs, bool performanceCountersEnabled, bool propagateActivity, Transaction currentTransaction, IInvokeReceivedNotification notification,
System\ServiceModel\Activities\WorkflowUpdateableControlClient.cs (1)
120return this.SupportsTransactedInvoke && Transaction.Current != null;
System.ServiceModel.Routing (12)
System\ServiceModel\Routing\ClientFactory.cs (3)
152public IAsyncResult BeginOperation(Message message, Transaction transaction, AsyncCallback callback, object state) 183Transaction transaction; 185public OperationAsyncResult(RoutingClientBase<TChannel> parent, Message requestMessage, Transaction transaction, AsyncCallback callback, object state)
System\ServiceModel\Routing\IRoutingClient.cs (1)
13IAsyncResult BeginOperation(Message message, Transaction transaction, AsyncCallback callback, object state);
System\ServiceModel\Routing\MessageRpc.cs (3)
35Transaction transaction; 85this.transaction = Transaction.Current; 159public Transaction Transaction
System\ServiceModel\Routing\ProcessMessagesAsyncResult.cs (2)
192Transaction transaction = this.service.GetTransactionForSending(messageRpc); 727Transaction transaction = this.service.GetTransactionForSending(null);
System\ServiceModel\Routing\RoutingService.cs (2)
107Transaction ReceiveTransaction 180internal Transaction GetTransactionForSending(MessageRpc messageRpc)
System\ServiceModel\Routing\SendOperation.cs (1)
75public void TransmitSucceeded(Transaction sendTransaction)
System.Transactions (130)
System\Transactions\CommittableTransaction.cs (2)
174if (Interlocked.Exchange(ref this.disposed, Transaction.disposedTrueValue) == Transaction.disposedTrueValue)
System\Transactions\Enlistment.cs (11)
67Transaction atomicTransaction; 115Transaction atomicTransaction 132Transaction atomicTransaction 149Transaction atomicTransaction 414Transaction atomicTransaction 477Transaction atomicTransaction 504Transaction atomicTransaction 555Transaction atomicTransaction 573Transaction atomicTransaction, 604Transaction atomicTransaction 619Transaction atomicTransaction
System\Transactions\InternalTransaction.cs (3)
196internal Transaction outcomeSource; 342internal InternalTransaction( Transaction outcomeSource, Oletx.OletxTransaction distributedTx ) 365internal InternalTransaction( Transaction outcomeSource, ITransactionPromoter promoter )
System\Transactions\Oletx\OleTxTransaction.cs (2)
58internal Transaction savedLtmPromotedTransaction = null; 196Transaction returnValue = TransactionInterop.GetTransactionFromTransmitterPropagationToken( propagationTokenForDeserialize );
System\Transactions\Oletx\OletxTransactionManager.cs (2)
995Transaction tx = null; 1021tx = (Transaction)txWeakRef.Target;
System\Transactions\Transaction.cs (27)
40internal Transaction transaction; 41public Transaction Transaction 136private static Transaction JitSafeGetContextTransaction(ContextData contextData) 189return (Transaction)SysES.ContextUtil.SystemTransaction; 196internal static Transaction GetContextTransaction(ContextData contextData) 236internal static Transaction FastGetTransaction(TransactionScope currentScope, ContextData contextData, out Transaction contextTransaction) 238Transaction current = null; 293out Transaction current, 295out Transaction contextTransaction 310public static Transaction Current 321Transaction current = null; 323Transaction contextValue = null; 395internal bool Disposed { get { return this.disposed == Transaction.disposedTrueValue; } } 505Transaction transaction = obj as Transaction; 520public static bool operator ==(Transaction x, Transaction y) 531public static bool operator !=(Transaction x, Transaction y) 981public Transaction Clone() 1000Transaction clone = InternalClone(); 1012internal Transaction InternalClone() 1014Transaction clone = new Transaction(this.isoLevel, 1149if (Interlocked.Exchange(ref this.disposed, Transaction.disposedTrueValue) == Transaction.disposedTrueValue) 1555internal Transaction CurrentTransaction;
System\Transactions\TransactionInterop.cs (11)
42Transaction transaction 85Transaction transaction, 166public static Transaction GetTransactionFromExportCookie( 193Transaction transaction = null; 300Transaction transaction 369public static Transaction GetTransactionFromTransmitterPropagationToken( 375Transaction returnValue = null; 407Transaction tx = TransactionManager.FindPromotedTransaction( txId ); 523Transaction transaction 566public static Transaction GetTransactionFromDtcTransaction( 585Transaction transaction = null;
System\Transactions\TransactionManager.cs (10)
37public delegate Transaction HostCurrentTransactionCallback(); 98Transaction tx = (Transaction)weakRef.Target; 110internal static void FireDistributedTransactionStarted( Transaction transaction ) 615internal static Transaction FindPromotedTransaction( 623Transaction tx = weakRef.Target as Transaction; 641internal static Transaction FindOrCreatePromotedTransaction( 646Transaction tx = null; 653tx = weakRef.Target as Transaction;
System\Transactions\TransactionScope.cs (22)
396public TransactionScope(Transaction transactionToUse) 403Transaction transactionToUse, 432public TransactionScope(Transaction transactionToUse, TimeSpan scopeTimeout) 439Transaction transactionToUse, 471Transaction transactionToUse, 540Transaction transactionToUse, 633Transaction contextTransaction = null; 634Transaction current = Transaction.FastGetTransaction( actualCurrentScope, this.threadContextData, out contextTransaction ); 646Transaction rollbackTransaction = this.committableTransaction; 896Transaction rollbackTransaction = this.committableTransaction; 1039Transaction.GetCurrentTransactionAndScope( 1061this.interopOption = Transaction.InteropMode(this.savedCurrentScope); 1165private void SetCurrent( Transaction newCurrent ) 1183Transaction.VerifyEnterpriseServicesOk(); 1185if ( Transaction.UseServiceDomainForCurrent() ) 1196Transaction.VerifyEnterpriseServicesOk(); 1235private void PushServiceDomain( Transaction newCurrent ) 1375currentInteropOption = Transaction.InteropMode(this.savedCurrentScope); 1396Transaction savedCurrent; 1401Transaction contextTransaction; 1412Transaction expectedCurrent;
System\Transactions\TransactionState.cs (40)
811Transaction atomicTransaction 823Transaction atomicTransaction 834Transaction atomicTransaction 845Transaction atomicTransaction 891Transaction atomicTransaction, 1088Transaction atomicTransaction 1176Transaction atomicTransaction 1194Transaction atomicTransaction 1362Transaction atomicTransaction 1392Transaction atomicTransaction 1420Transaction atomicTransaction, 1525Transaction atomicTransaction 1537Transaction atomicTransaction 1563Transaction atomicTransaction, 1630Transaction atomicTransaction 1649Transaction atomicTransaction 1667Transaction atomicTransaction 1697Transaction atomicTransaction 1735Transaction atomicTransaction, 2410Transaction atomicTransaction 2442Transaction atomicTransaction 2475Transaction atomicTransaction 2519Transaction atomicTransaction 2625Transaction atomicTransaction, 3455internal override Enlistment EnlistVolatile( InternalTransaction tx, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction ) 3461internal override Enlistment EnlistVolatile( InternalTransaction tx, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction ) 3467internal override Enlistment EnlistDurable( InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction ) 3473internal override Enlistment EnlistDurable( InternalTransaction tx, Guid resourceManagerIdentifier, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction ) 4226Transaction atomicTransaction 4255Transaction atomicTransaction 4286Transaction atomicTransaction 4299Transaction atomicTransaction 4309Transaction atomicTransaction, 4637Transaction atomicTransaction 4647Transaction atomicTransaction 4655Transaction atomicTransaction, 4740Transaction atomicTransaction 4750Transaction atomicTransaction 4758Transaction atomicTransaction, 5393Transaction atomicTransaction
System.Workflow.Runtime (49)
Hosting\DbResourceAllocator.cs (3)
172internal DbConnection GetEnlistedConnection(WorkflowCommitWorkBatchService txSvc, Transaction transaction, out bool isNewConnection) 201internal static DbTransaction GetLocalTransaction(WorkflowCommitWorkBatchService txSvc, Transaction transaction) 359private static SharedConnectionInfo GetConnectionInfo(WorkflowCommitWorkBatchService txSvc, Transaction transaction)
Hosting\DefaultWorkflowTransactionService.cs (1)
95if (null != Transaction.Current)
Hosting\SharedConnectionInfo.cs (1)
45Transaction transaction,
Hosting\SharedConnectionWorkflowTransactionService.cs (10)
26private IDictionary<Transaction, SharedConnectionInfo> transactionConnectionTable; 112this.transactionConnectionTable = new Dictionary<Transaction, SharedConnectionInfo>(); 140foreach (KeyValuePair<Transaction, SharedConnectionInfo> kvp in this.transactionConnectionTable) 166Transaction tx = null; 171if (null == Transaction.Current) 186tx = Transaction.Current.DependentClone(DependentCloneOption.BlockCommitUntilComplete); 247internal SharedConnectionInfo GetConnectionInfo(Transaction transaction) 256private void RemoveConnectionFromInfoTable(Transaction transaction) 275private void AddToConnectionInfoTable(Transaction transaction, SharedConnectionInfo connectionInfo) 285private SharedConnectionInfo LookupConnectionInfoTable(Transaction transaction)
Hosting\SqlWorkflowPersistenceService.cs (2)
85System.Transactions.Transaction transaction, 1104void IPendingWork.Commit(System.Transactions.Transaction transaction, ICollection items)
Hosting\WorkflowTransactionService.cs (3)
24Transaction tx = null; 25if (null == Transaction.Current) 28tx = Transaction.Current.DependentClone(DependentCloneOption.BlockCommitUntilComplete);
IPendingWork.cs (1)
25void Commit(System.Transactions.Transaction transaction, ICollection items);
System\Activities\Statements\Interop.cs (11)
811void Resume(NativeActivityContext context, Transaction transaction) 848if (Transaction.Current != null && 849Transaction.Current.TransactionInformation.Status == TransactionStatus.Active) 854enlistment = new InteropEnlistment(Transaction.Current, resourceManager); 855Transaction.Current.EnlistVolatile(enlistment, EnlistmentOptions.EnlistDuringPrepareRequired); 1703this.CommittedResourceManagers = new Dictionary<Transaction, Dictionary<string, VolatileResourceManager>>(); 1712Dictionary<Transaction, Dictionary<string, VolatileResourceManager>> CommittedResourceManagers 1729this.CommittedResourceManagers.Add(Transaction.Current, this.ResourceManagers); 1731Transaction.Current.TransactionCompleted += new TransactionCompletedEventHandler(Current_TransactionCompleted); 1782Transaction transaction; 1788public InteropEnlistment(Transaction transaction, VolatileResourceManager resourceManager)
System\Activities\Statements\InteropEnvironment.cs (2)
37Transaction transaction; 40BookmarkCallback bookmarkCallback, Interop activity, Transaction transaction)
System\Activities\Statements\InteropExecutor.cs (1)
233public void SetAmbientTransactionAndServiceEnvironment(Transaction transaction)
Tracking\SqlTrackingService.cs (1)
937public void Commit(System.Transactions.Transaction transaction, ICollection items)
TransactionalProperties.cs (1)
27internal System.Transactions.Transaction Transaction;
VolatileResourceManager.cs (2)
58Transaction transaction = Transaction.Current;
WorkBatch.cs (2)
87internal void Commit(Transaction transaction) 245internal void Commit(Transaction transaction)
WorkflowExecutor.cs (8)
2108" .Created enlistable transaction " + ((System.Transactions.Transaction)transaction).GetHashCode() + 2137((System.Transactions.Transaction)transactionalProperties.Transaction).GetHashCode()); 2156if (null == Transaction.Current) 2241((System.Transactions.Transaction)transactionalProperties.Transaction).GetHashCode()); 2259((System.Transactions.Transaction)transactionalProperties.Transaction).GetHashCode()); 2294if (null == Transaction.Current) 2325System.Transactions.Transaction transaction = transactionalProperties.Transaction; 2331((System.Transactions.Transaction)transaction).GetHashCode());
System.WorkflowServices (2)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (2)
931if (this.durableInstance.saveStateInOperationTransaction && Transaction.Current != null) 933this.durableInstance.clonedTransaction = Transaction.Current.DependentClone(DependentCloneOption.BlockCommitUntilComplete);