4 writes to Version
System.Runtime.DurableInstancing (4)
System\Runtime\DurableInstancing\InstanceHandle.cs (4)
39
Version
= -1;
51
Version
= -1;
360
Version
= instanceVersion;
442
Version
= instanceVersion;
26 references to Version
System.Runtime.DurableInstancing (26)
System\Runtime\DurableInstancing\InstanceHandle.cs (8)
220
else if (
Version
!= -1)
300
Fx.AssertAndThrow(
Version
== -1, "Handle already bound to a lock.");
359
Fx.AssertAndThrow(
Version
== -1, "This should only be reachable once per handle.");
379
Fx.AssertAndThrow(
Version
== -1, "StartReclaim should only be reachable if the lock hasn't been bound.");
440
Fx.AssertAndThrow(
Version
== -1, "Should only be able to set the version once per handle.");
520
if (
Version
!= -1)
658
if (this.inProgressBind != null && (
Version
== -1 || !IsValid))
662
else if (
Version
!= -1 && !IsValid)
System\Runtime\DurableInstancing\InstanceOwner.cs (17)
108
Fx.Assert(reference.InstanceHandle.
Version
!= -1, "Handle state must be set first.");
121
if (existingHandle.
Version
<= 0 || reference.InstanceHandle.
Version
<= 0)
123
if (existingHandle.
Version
!= 0 || reference.InstanceHandle.
Version
!= 0)
132
if (existingHandle.
Version
> reference.InstanceHandle.
Version
)
138
if (existingHandle.
Version
< reference.InstanceHandle.
Version
)
146
if (existingHandle.
Version
== reference.InstanceHandle.
Version
)
192
if (existingHandle.
Version
<= 0 || instanceVersion <= 0)
194
if (existingHandle.
Version
!= 0 || instanceVersion != 0)
203
if (existingHandle.
Version
>= instanceVersion)
455
if (existingHandle.
Version
<= 0 || marker.InstanceVersion <= 0)
457
if (existingHandle.
Version
!= 0 || marker.InstanceVersion != 0)
468
else if (existingHandle.
Version
>= marker.InstanceVersion)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (1)
72
return InstanceHandle.
Version
;