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