Merge pull request #2045 from BillSeurer/timezone
[mono.git] / mcs / class / System.Runtime.DurableInstancing / System.Runtime.DurableInstancing / InstanceView.cs
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4 using System.Collections.ObjectModel;
5 using System.ComponentModel;
6 using System.IO;
7 using System.Linq;
8 using System.Runtime.Serialization;
9 using System.Xml;
10 using System.Xml.Linq;
11
12 namespace System.Runtime.DurableInstancing
13 {
14         public sealed class InstanceView
15         {
16                 internal InstanceView (Guid instanceId, InstanceOwner owner)
17                 {
18                 }
19                 
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; }
32
33                 public bool IsBoundToInstance {
34                         get { return InstanceId == Guid.Empty; }
35                 }
36
37                 public bool IsBoundToInstanceOwner {
38                         get { return InstanceOwner == null; }
39                 }
40
41                 public bool IsBoundToLock { get { throw new NotImplementedException (); } }
42         }
43 }