2 writes to Id
System.Runtime.DurableInstancing (2)
System\Runtime\DurableInstancing\InstanceHandle.cs (2)
54
Id
= instanceId;
334
Id
= instanceId;
19 references to Id
System.Runtime.DurableInstancing (19)
System\Runtime\DurableInstancing\InstanceHandle.cs (2)
333
Fx.Assert(
Id
== Guid.Empty, "Instance already boud in BindInstance.");
355
Fx.Assert(
Id
!= Guid.Empty, "Bind called before instance bound.");
System\Runtime\DurableInstancing\InstanceOwner.cs (17)
76
Fx.Assert(handle.
Id
!= Guid.Empty, "Unbind called on a handle not even bound to an instance.");
82
if (BoundHandles.TryGetValue(handle.
Id
, out existingHandle) && object.ReferenceEquals(handle, existingHandle))
84
BoundHandles.Remove(handle.
Id
);
118
if (BoundHandles.TryGetValue(reference.InstanceHandle.
Id
, out existingHandle))
142
BoundHandles[reference.InstanceHandle.
Id
] = reference.InstanceHandle;
156
BoundHandles.Add(reference.InstanceHandle.
Id
, reference.InstanceHandle);
178
Fx.Assert(reference.InstanceHandle.
Id
!= Guid.Empty, "Must be bound to an instance already.");
189
if (BoundHandles.TryGetValue(reference.InstanceHandle.
Id
, out existingHandle))
244
Fx.Assert(reference.InstanceHandle.
Id
!= Guid.Empty, "InstanceBound called, but the handle isn't bound.");
332
Guid wasBoundToInstanceId = reference.InstanceHandle.
Id
;
389
if (handleRef.InstanceHandle.
Id
== Guid.Empty)
395
if (!InProgressHandlesPerInstance.TryGetValue(handleRef.InstanceHandle.
Id
, out acceptingQueue))
401
InProgressHandlesPerInstance.Add(handleRef.InstanceHandle.
Id
, acceptingQueue);
421
else if (handleRef.InstanceHandle.
Id
!= Guid.Empty)
424
if (!InProgressHandlesPerInstance.TryGetValue(handleRef.InstanceHandle.
Id
, out queue))
427
InProgressHandlesPerInstance.Add(handleRef.InstanceHandle.
Id
, queue);
452
if (BoundHandles.TryGetValue(marker.InstanceHandle.
Id
, out existingHandle))