3 writes to Owner
System.Runtime.DurableInstancing (3)
System\Runtime\DurableInstancing\InstanceHandle.cs (3)
41
Owner
= owner;
53
Owner
= owner;
320
Owner
= owner;
37 references to Owner
System.Runtime.DurableInstancing (37)
System\Runtime\DurableInstancing\InstanceHandle.cs (27)
187
Fx.Assert(
Owner
!= null, "How do we have owner events without an owner.");
188
Store.RemoveHandleFromEvents(this, eventsToUnbind,
Owner
);
218
Owner
.CancelBind(ref this.inProgressBind, ref handlesPendingResolution);
223
Owner
.Unbind(this);
242
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an inProgressBind for the lock in CancelReclaim.");
246
Owner
.FaultBind(ref this.inProgressBind, ref handlesPendingResolution, null);
278
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an owner-scoped event.");
291
Store.PendHandleToEvent(this, persistenceEvent,
Owner
);
305
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an inProgressBind for the lock.");
307
Owner
.StartBind(this, ref this.inProgressBind);
319
Fx.Assert(
Owner
== null, "BindOwner called when we already have an owner.");
340
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an inProgressBind for the lock.");
341
Owner
.InstanceBound(ref this.inProgressBind, ref handlesPendingResolution);
354
Fx.Assert(
Owner
!= null, "Bind called before owner bound.");
388
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an inProgressBind for the lock in StartReclaim.");
389
return
Owner
.InitiateLockResolution(instanceVersion, ref this.inProgressBind, ref handlesPendingResolution);
411
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an inProgressBind for the lock in CancelReclaim.");
412
Owner
.FaultBind(ref this.inProgressBind, ref handlesPendingResolution, reason);
434
Fx.Assert(
Owner
!= null, "Must be bound to owner to have an inProgressBind for the lock in CancelReclaim.");
435
if (!
Owner
.FinishBind(ref this.inProgressBind, ref instanceVersion, ref handlesPendingResolution))
522
if (!
Owner
.TryCompleteBind(ref this.inProgressBind, ref handlesPendingResolution, out handleToFree))
531
Owner
.CancelBind(ref this.inProgressBind, ref handlesPendingResolution);
550
InstancePersistenceEvent normal = Store.AddHandleToEvent(this, persistenceEvent,
Owner
);
660
Owner
.CancelBind(ref this.inProgressBind, ref handlesPendingResolution);
665
Owner
.Unbind(this);
718
Fx.Assert(
Owner
!= null, "How do we have owner events without an owner.");
719
List<InstancePersistenceEvent> readyEvents = Store.SelectSignaledEvents(this.boundOwnerEvents,
Owner
);
System\Runtime\DurableInstancing\InstanceOwner.cs (6)
75
Fx.Assert(object.ReferenceEquals(this, handle.
Owner
), "Unbind called on the wrong owner for a handle.");
92
Fx.Assert(object.ReferenceEquals(this, handle.
Owner
), "StartBind called on the wrong owner for a handle.");
109
Fx.Assert(object.ReferenceEquals(this, reference.InstanceHandle.
Owner
), "TryCompleteBind called on the wrong owner for a handle.");
257
Fx.Assert(object.ReferenceEquals(this, reference.InstanceHandle.
Owner
), "CancelBind called on the wrong owner for a handle.");
269
Fx.Assert(object.ReferenceEquals(this, reference.InstanceHandle.
Owner
), "FaultBind called on the wrong owner for a handle.");
299
Fx.Assert(object.ReferenceEquals(this, reference.InstanceHandle.
Owner
), "FinishBind called on the wrong owner for a handle.");
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (4)
88
Fx.Assert(InstanceHandle.
Owner
== null || InstanceHandle.
Owner
.OwnerToken == InstanceView.InstanceOwner.OwnerToken, "Mismatched lock tokens.");
91
return InstanceHandle.
Owner
== null ? Guid.Empty : InstanceHandle.
Owner
.OwnerToken;