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