2 using System.Collections;
3 using System.Collections.Generic;
4 using System.Collections.ObjectModel;
5 using System.ComponentModel;
8 using System.Runtime.Serialization;
10 using System.Xml.Linq;
12 namespace System.Runtime.DurableInstancing
14 public sealed class InstanceView
16 internal InstanceView (Guid instanceId, InstanceOwner owner)
20 public IDictionary<XName, InstanceValue> InstanceData { get; internal set; }
21 public InstanceValueConsistency InstanceDataConsistency { get; internal set; }
22 public Guid InstanceId { get; private set; }
23 public IDictionary<Guid, InstanceKeyView> InstanceKeys { get; internal set; }
24 public InstanceValueConsistency InstanceKeysConsistency { get; internal set; }
25 public IDictionary<XName, InstanceValue> InstanceMetadata { get; internal set; }
26 public InstanceValueConsistency InstanceMetadataConsistency { get; internal set; }
27 public InstanceOwner InstanceOwner { get; private set; }
28 public IDictionary<XName, InstanceValue> InstanceOwnerMetadata { get; internal set; }
29 public InstanceValueConsistency InstanceOwnerMetadataConsistency { get; internal set; }
30 public InstanceState InstanceState { get; internal set; }
31 public ReadOnlyCollection<InstanceStoreQueryResult> InstanceStoreQueryResults { get; internal set; }
33 public bool IsBoundToInstance {
34 get { return InstanceId == Guid.Empty; }
37 public bool IsBoundToInstanceOwner {
38 get { return InstanceOwner == null; }
41 public bool IsBoundToLock { get { throw new NotImplementedException (); } }