1 write to InstanceHandle
System.Runtime.DurableInstancing (1)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (1)
55InstanceHandle = handle;
42 references to InstanceHandle
System.Activities.DurableInstancing (6)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
138base.StoreLock.MarkInstanceOwnerCreated(this.lockOwnerId, surrogateLockOwnerId, base.InstancePersistenceContext.InstanceHandle, this.fireRunnableInstancesEvent, this.fireActivatableInstancesEvent);
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (1)
58base.InstancePersistenceContext.InstanceHandle.Free();
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
181base.InstancePersistenceContext.InstanceHandle.Free();
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
178base.InstancePersistenceContext.InstanceHandle.Free(); 183base.InstancePersistenceContext.InstanceHandle.Free();
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (1)
180thisPtr.InstancePersistenceContext.InstanceHandle.Free();
System.Runtime.DurableInstancing (36)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (36)
72return InstanceHandle.Version; 88Fx.Assert(InstanceHandle.Owner == null || InstanceHandle.Owner.OwnerToken == InstanceView.InstanceOwner.OwnerToken, "Mismatched lock tokens."); 91return InstanceHandle.Owner == null ? Guid.Empty : InstanceHandle.Owner.OwnerToken; 99return InstanceHandle.ProviderObject; 153InstanceOwner owner = InstanceHandle.Store.GetOrCreateOwner(instanceOwnerId, lockToken); 158InstanceHandle.BindOwner(owner); 172InstanceHandle.BindInstance(instanceId); 189InstanceHandle.BindOwnerEvent(persistenceEvent); 204InstanceHandle.Bind(instanceVersion); 212InstanceHandle.CancelReclaim(new TimeoutException(SRCore.TimedOutWaitingForLockResolution)); 247AsyncWaitHandle wait = InstanceHandle.StartReclaim(instanceVersion); 250InstanceHandle.Free(); 263if (!InstanceHandle.FinishReclaim(ref instanceVersion)) 265InstanceHandle.Free(); 703InstanceHandle.Free(); 708InstanceHandle.Free(); 730InstanceHandle.Free(); 735InstanceHandle.Free(); 1091this.context.InstanceHandle.Free(); 1241this.context.InstanceHandle.StartPotentialBind(); 1263commandProcessed = this.context.InstanceHandle.Store.TryCommand(this.context, CurrentCommand, this.timeoutHelper.RemainingTime()); 1287result = this.context.InstanceHandle.Store.BeginTryCommand(this.context, CurrentCommand, this.timeoutHelper.RemainingTime(), PrepareAsyncCompletion(ExecuteAsyncResult.onTryCommand), this); 1375commandProcessed = this.context.InstanceHandle.Store.EndTryCommand(result); 1446this.context.InstanceHandle.CancelReclaim(new TimeoutException(SRCore.TimedOutWaitingForLockResolution)); 1452this.context.InstanceHandle.Free(); 1513this.context.InstanceHandle.Free(); 1530this.context.InstanceHandle.Free(); 1537this.context.InstanceHandle.Free(); 1543this.context.InstanceHandle.Free(); 1551this.finalState = this.context.InstanceHandle.Commit(this.context.InstanceView); 1565this.context.InstanceHandle.Free(); 1575this.context.InstanceHandle.Free(); 1603this.context.InstanceHandle.ReleaseExecutionContext(); 1668thisPtr.context.InstanceHandle.CancelReclaim(new TimeoutException(SRCore.TimedOutWaitingForLockResolution));