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"); }
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); }); }
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); } }
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); }); }
public void Deserialize(IPayloadReader reader) { this.Sequence = reader.ReadInt64("Sequence"); this.ChannelName = reader.ReadString("ChannelName"); this.Payloads = reader.ReadList <Payload>("Payloads", Payload.CreateInstance).ToArray(); }
public void Deserialize(IPayloadReader reader) { this.Sequence = reader.ReadInt64("Sequence"); this.ChannelName = reader.ReadString("ChannelName"); this.Payloads = reader.ReadList<Payload>("Payloads", Payload.CreateInstance).ToArray(); }