4 writes to context
System.Runtime.DurableInstancing (4)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (4)
994this.context = context; 1031this.context = this.initialInstanceHandle.AcquireExecutionContext(transaction, this.timeoutHelper.RemainingTime()); 1073this.context = context; 1175thisPtr.context = thisPtr.initialInstanceHandle.EndAcquireExecutionContext(result);
53 references to context
System.Runtime.DurableInstancing (53)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (53)
996this.priorAsyncResult = this.context.LastAsyncResult; 1006this.context.LastAsyncResult = this; 1017this.context.LastAsyncResult = this.priorAsyncResult; 1037this.context.RootAsyncResult = this; 1038this.context.LastAsyncResult = this; 1075this.priorAsyncResult = this.context.LastAsyncResult; 1082this.context.LastAsyncResult = this; 1088this.context.LastAsyncResult = this.priorAsyncResult; 1089if (!success && this.context.IsHandleDoomedByRollback) 1091this.context.InstanceHandle.Free(); 1134Fx.Assert(!this.context.IsHostTransaction, "SetInteriorTransaction called for a host transaction."); 1176thisPtr.context.RootAsyncResult = thisPtr; 1177thisPtr.context.LastAsyncResult = thisPtr; 1216this.context.RequireTransaction(); 1221CurrentCommand.Validate(this.context.InstanceView); 1234else if (!this.context.InstanceView.IsBoundToInstanceOwner) 1238else if (!this.context.InstanceView.IsBoundToLock) 1241this.context.InstanceHandle.StartPotentialBind(); 1250if (this.context.CancelRequested) 1262txScope = TransactionHelper.CreateTransactionScope(this.context.Transaction); 1263commandProcessed = this.context.InstanceHandle.Store.TryCommand(this.context, CurrentCommand, this.timeoutHelper.RemainingTime()); 1283using (PrepareTransactionalCall(this.context.Transaction)) 1287result = this.context.InstanceHandle.Store.BeginTryCommand(this.context, CurrentCommand, this.timeoutHelper.RemainingTime(), PrepareAsyncCompletion(ExecuteAsyncResult.onTryCommand), this); 1375commandProcessed = this.context.InstanceHandle.Store.EndTryCommand(result); 1396if (!object.ReferenceEquals(this.context.LastAsyncResult, this)) 1406IEnumerable<InstancePersistenceCommand> reduction = CurrentCommand.Reduce(this.context.InstanceView); 1446this.context.InstanceHandle.CancelReclaim(new TimeoutException(SRCore.TimedOutWaitingForLockResolution)); 1448this.context.ConcludeBindReclaimedLockHelper(); 1452this.context.InstanceHandle.Free(); 1498else if (this.context.IsHostTransaction) 1501this.finalState = this.context.InstanceView.Clone(); 1505this.context.InstanceView.InstanceStoreQueryResults = null; 1513this.context.InstanceHandle.Free(); 1514throw Fx.Exception.AsError(new InstanceHandleConflictException(null, this.context.InstanceView.InstanceId)); 1530this.context.InstanceHandle.Free(); 1535if (this.context.IsHandleDoomedByRollback) 1537this.context.InstanceHandle.Free(); 1543this.context.InstanceHandle.Free(); 1544return new InstanceHandleConflictException(null, this.context.InstanceView.InstanceId); 1551this.finalState = this.context.InstanceHandle.Commit(this.context.InstanceView); 1559this.context.LastAsyncResult = this.priorAsyncResult; 1563if (this.context != null && this.context.IsHandleDoomedByRollback) 1565this.context.InstanceHandle.Free(); 1569if (this.context == null) 1575this.context.InstanceHandle.Free(); 1599Fx.AssertAndThrowFatal(this.context.Active, "Out-of-sync between InstanceExecutionContext and ExecutionAsyncResult."); 1601this.context.LastAsyncResult = null; 1602this.context.RootAsyncResult = null; 1603this.context.InstanceHandle.ReleaseExecutionContext();