2 instantiations of InstanceHandle
System.Runtime.DurableInstancing (2)
System\Runtime\DurableInstancing\InstanceStore.cs (2)
46return PrepareInstanceHandle(new InstanceHandle(this, owner)); 60return PrepareInstanceHandle(new InstanceHandle(this, owner, instanceId));
85 references to InstanceHandle
System.Activities (6)
System\Activities\WorkflowApplication.cs (6)
1543InstanceHandle temporaryHandle = null; 5314InstanceHandle temporaryHandle; 5542InstanceHandle handle; 5543InstanceHandle temporaryHandle; 5700InstanceHandle handle = this.temporaryHandle; 6030InstanceHandle handle = this.handle;
System.Activities.DurableInstancing (5)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (2)
533protected override void OnFreeInstanceHandle(InstanceHandle instanceHandle, object userContext) 539protected override object OnNewInstanceHandle(InstanceHandle instanceHandle)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (3)
109public void MarkInstanceOwnerCreated(Guid lockOwnerId, long surrogateLockOwnerId, InstanceHandle lockOwnerInstanceHandle, bool detectRunnableInstances, bool detectActivatableInstances) 202InstanceHandle instanceHandle = this.lockOwnerInstanceHandle.Target as InstanceHandle;
System.Runtime.DurableInstancing (66)
System\Runtime\DurableInstancing\InstanceHandle.cs (11)
108internal InstanceHandle ConflictingHandle { get; set; } 510InstanceHandle handleToFree = null; 771internal static IAsyncResult BeginWaitForEvents(InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state) 785readonly InstanceHandle handle; 790public AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending, AsyncCallback callback, object state) 795[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle))] 796public AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending) 801[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle), Conditional = "synchronous")] 802AcquireContextAsyncResult(InstanceHandle handle, Transaction hostTransaction, TimeSpan timeout, out bool setOperationPending, bool synchronous, AsyncCallback callback, object state) 1028readonly InstanceHandle handle; 1035internal WaitForEventsAsyncResult(InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state)
System\Runtime\DurableInstancing\InstanceHandleReference.cs (2)
14internal InstanceHandleReference(InstanceHandle instanceHandle) 22internal InstanceHandle InstanceHandle { get; private set; }
System\Runtime\DurableInstancing\InstanceNormalEvent.cs (6)
13HashSet<InstanceHandle> boundHandles = new HashSet<InstanceHandle>(); 14HashSet<InstanceHandle> pendingHandles = new HashSet<InstanceHandle>(); 23internal HashSet<InstanceHandle> BoundHandles 31internal HashSet<InstanceHandle> PendingHandles
System\Runtime\DurableInstancing\InstanceOwner.cs (12)
15readonly Dictionary<Guid, InstanceHandle> boundHandles = new Dictionary<Guid, InstanceHandle>(); 48Dictionary<Guid, InstanceHandle> BoundHandles 73internal void Unbind(InstanceHandle handle) 81InstanceHandle existingHandle; 90internal void StartBind(InstanceHandle handle, ref InstanceHandleReference reference) 104internal bool TryCompleteBind(ref InstanceHandleReference reference, ref List<InstanceHandleReference> handlesPendingResolution, out InstanceHandle handleToFree) 117InstanceHandle existingHandle; 188InstanceHandle existingHandle; 451InstanceHandle existingHandle; 508internal LockResolutionMarker(InstanceHandle instanceHandle, long instanceVersion) 527internal InstanceHandle ConflictingHandle { get; set; }
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (9)
27internal InstancePersistenceContext(InstanceHandle handle, Transaction transaction) 45internal InstancePersistenceContext(InstanceHandle handle, TimeSpan timeout) 51InstancePersistenceContext(InstanceHandle handle) 65public InstanceHandle InstanceHandle { get; private set; } 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) 942readonly InstanceHandle initialInstanceHandle; 958public ExecuteAsyncResult(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 1027public ExecuteAsyncResult(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout)
System\Runtime\DurableInstancing\InstanceStore.cs (26)
39public InstanceHandle CreateInstanceHandle() 44public InstanceHandle CreateInstanceHandle(InstanceOwner owner) 49public InstanceHandle CreateInstanceHandle(Guid instanceId) 54public InstanceHandle CreateInstanceHandle(InstanceOwner owner, Guid instanceId) 67[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle))] 68public InstanceView Execute(InstanceHandle handle, InstancePersistenceCommand command, TimeSpan timeout) 88public IAsyncResult BeginExecute(InstanceHandle handle, InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state) 108[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle), Conditional = "!result.IsCompleted")] 116[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle), Conditional = "timeout != TimeSpan.Zero")] 117public List<InstancePersistenceEvent> WaitForEvents(InstanceHandle handle, TimeSpan timeout) 126public IAsyncResult BeginWaitForEvents(InstanceHandle handle, TimeSpan timeout, AsyncCallback callback, object state) 138return InstanceHandle.BeginWaitForEvents(handle, timeout, callback, state); 142[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle), Conditional = "!result.IsCompleted")] 145return InstanceHandle.EndWaitForEvents(result); 160InstanceHandle[] handlesToNotify = null; 181foreach (InstanceHandle handle in handlesToNotify) 224protected virtual object OnNewInstanceHandle(InstanceHandle instanceHandle) 229protected virtual void OnFreeInstanceHandle(InstanceHandle instanceHandle, object userContext) 234[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle))] 247[Fx.Tag.Blocking(CancelMethod = "Free", CancelDeclaringType = typeof(InstanceHandle), Conditional = "!result.IsCompleted")] 333internal void PendHandleToEvent(InstanceHandle handle, InstancePersistenceEvent persistenceEvent, InstanceOwner owner) 347internal InstancePersistenceEvent AddHandleToEvent(InstanceHandle handle, InstancePersistenceEvent persistenceEvent, InstanceOwner owner) 387internal void RemoveHandleFromEvents(InstanceHandle handle, IEnumerable<XName> eventNames, InstanceOwner owner) 421internal void FreeInstanceHandle(InstanceHandle handle, object providerObject) 437InstanceHandle PrepareInstanceHandle(InstanceHandle handle)
System.ServiceModel.Activities (8)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (4)
29InstanceHandle handle; 391InstanceHandle handle = null; 504InstanceHandle handle; 615InstanceHandle handle;
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (2)
29readonly InstanceHandle handle; 87InstanceHandle handle, Guid instanceId, IEnumerable<InstanceKey> associatedKeys,
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (2)
508InstancePersistenceCommand CreateLoadCommandHelper(InstanceKey key, out InstanceHandle handle, bool canCreateInstance, Guid suggestedIdOrId, ICollection<InstanceKey> associatedKeys, bool loadAny) 731InstanceHandle handle;