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