Пример #1
0
 public virtual void Deserialize(IPayloadReader reader)
 {
     this.Name         = reader.ReadString("Name");
     this.Index        = reader.ReadInt16("Index");
     this.ETag         = reader.ReadObject <ETag>("ETag");
     this.Attributes   = reader.ReadObject <SharedAttributes>("Attributes", ReadObjectOption.Create);
     this.PropertyType = reader.ReadByte("PropertyType");
     this.Value        = reader.ReadString("Value");
 }
Пример #2
0
 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");
 }
Пример #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);
     }
 }
Пример #4
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.ObjectPayload = (ObjectPayload)reader.ReadObject("Object", Payload.CreateInstance);
     this.Mode = (ObjectMode)reader.ReadByte("Mode");
 }
Пример #5
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.ObjectPayload = (ObjectPayload)reader.ReadObject("Object", Payload.CreateInstance);
     this.Created = reader.ReadBoolean("Created");
 }
Пример #6
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.Parent = reader.ReadObject<ParentEntry>("Parent");
     this.ObjectId = reader.ReadGuid("ObjectId");
     this.ApplyPayload = reader.ReadBoolean("ApplyPayload");
     this.OperationSequence = reader.ReadInt32("OperationSequence");
 }
Пример #7
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.PrincipalPayload = (ObjectPayload)reader.ReadObject("PrincipalPayload", Payload.CreateInstance);
 }
Пример #8
0
        public override void Deserialize(IPayloadReader reader)
        {
            base.Deserialize(reader);

            this.SubscriptionId = reader.ReadString("SubscriptionId");
            this.SharedObjectNamespace = reader.ReadString("SharedObjectNamespace");
            this.SharedObjectNamespaceLifetime = (NamespaceLifetime)reader.ReadByte("SharedObjectNamespaceLifetime");
            this.PrincipalPayload = (ObjectPayload)reader.ReadObject("PrincipalPayload", Payload.CreateInstance);
            this.SenderVersion = reader.ReadObject<ProtocolVersion>("Version");
        }
Пример #9
0
        public override void Deserialize(IPayloadReader reader)
        {
            base.Deserialize(reader);

            this.Action = (PayloadAction)reader.ReadByte("Action");
            this.EntryId = reader.ReadGuid("EntryId");
            this.Policy = (EvictionPolicy)reader.ReadObject("Policy", EvictionPolicy.Create);
        }
Пример #10
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.SecurityAction = (PayloadAction)reader.ReadByte("SecurityAction");
     this.SharedObjectSecurity = reader.ReadObject<SharedObjectSecurity>("Security");
 }
Пример #11
0
 public override void Deserialize(IPayloadReader reader)
 {
     base.Deserialize(reader);
     this.ETag = reader.ReadObject<ETag>("ETag");
     this.ObjectId = reader.ReadGuid("ObjectId");
     this.PropertyIndex = reader.ReadInt16("PropertyIndex");
     this.PropertyName = reader.ReadString("PropertyName");
     this.PropertyType = reader.ReadByte("PropertyType");
     this.PropertyValue = reader.ReadString("PropertyValue");
 }