public void Deserialize(IPayloadReader reader)
 {
     this.ObjectName  = reader.ReadString("ObjectName");
     this.ObjectId    = reader.ReadGuid("ObjectId");
     this.IsContainer = reader.ReadBoolean("IsContainer");
     this.ETag        = reader.ReadObject <ETag>("ETag");
     this.Rules       = reader.ReadList <SharedObjectAccessRule>("Rules");
 }
Esempio n. 2
0
 public void Deserialize(IPayloadReader reader)
 {
     this.dictionary.Clear();
     reader.ReadList("Values", r =>
     {
         SharedProperty prop = new SharedProperty();
         prop.Deserialize(r);
         this.dictionary.Add(prop.Index, prop);
     });
 }
Esempio n. 3
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.Attributes = reader.ReadObject<SharedAttributes>("Attributes", ReadObjectOption.Create);
     this.Type = reader.ReadString("Type");
     this.IsDynamic = reader.ReadBoolean("IsDynamic");
     List<SharedProperty> props = reader.ReadList<SharedProperty>("SharedProperties");
     foreach (var prop in props)
     {
         this.SharedProperties.Add(prop.Index, prop);
     }
 }
Esempio n. 4
0
        public override void Deserialize(IPayloadReader reader)
        {
            base.Deserialize(reader);

            reader.ReadList("States", r =>
            {
                Guid collectionName = r.ReadGuid("Key");
                int operationSequence = r.ReadInt32("Value");
                byte[] checksum = r.ReadBytes("Checksum");

                this.CollectionStates.Add(collectionName, operationSequence);
                this.CollectionChecksums.Add(collectionName, checksum);
            });
        }
Esempio n. 5
0
 public void Deserialize(IPayloadReader reader)
 {
     this.Sequence    = reader.ReadInt64("Sequence");
     this.ChannelName = reader.ReadString("ChannelName");
     this.Payloads    = reader.ReadList <Payload>("Payloads", Payload.CreateInstance).ToArray();
 }
Esempio n. 6
0
 public void Deserialize(IPayloadReader reader)
 {
     this.Sequence = reader.ReadInt64("Sequence");
     this.ChannelName = reader.ReadString("ChannelName");
     this.Payloads = reader.ReadList<Payload>("Payloads", Payload.CreateInstance).ToArray();
 }