Ejemplo n.º 1
0
        internal InstanceHandle(InstanceStore store, InstanceOwner owner)
        {
            Fx.Assert(store != null, "Shouldn't be possible.");

            Version = -1;
            Store   = store;
            Owner   = owner;
            View    = new InstanceView(owner);
            IsValid = true;
        }
Ejemplo n.º 2
0
        internal InstanceHandle(InstanceStore store, InstanceOwner owner, Guid instanceId)
        {
            Fx.Assert(store != null, "Shouldn't be possible here either.");
            Fx.Assert(instanceId != Guid.Empty, "Should be validating this.");

            Version = -1;
            Store   = store;
            Owner   = owner;
            Id      = instanceId;
            View    = new InstanceView(owner, instanceId);
            IsValid = true;
            if (Fx.IsEtwProviderEnabled)
            {
                _eventTraceActivity = new EventTraceActivity(instanceId);
            }
        }