public void Serialize(IPayloadWriter writer) { writer.Write("ObjectName", this.ObjectName); writer.Write("ObjectId", this.ObjectId); writer.Write("IsContainer", this.IsContainer); writer.Write("ETag", this.ETag); writer.Write("Rules", this.Rules); }
public void Serialize(IPayloadWriter writer) { writer.Write("TimestampAttribute", (byte)this.TimestampAttribute); writer.Write("ConcurrencyAttribute", (byte)this.ConcurrencyAttribute); writer.Write("EditorAttribute", (byte)this.EditorAttribute); writer.Write("PropertyFlags", (byte)this.PropertyFlags); writer.Write("ObjectVersion", ObjectVersion); }
public void Serialize(IPayloadWriter writer) { writer.Write("IdentityReference", this.IdentityReference); writer.Write("AccessMask", (Int32)this.AccessMask); writer.Write("IsInherited", this.IsInherited); writer.Write("InheritanceFlags", (Int32)this.InheritanceFlags); writer.Write("AccessControlType", (Int32)this.AccessControlType); }
public void Serialize(IPayloadWriter writer) { writer.Write("TimestampAttribute", (byte)this.TimestampAttribute); writer.Write("ConcurrencyAttribute", (byte)this.ConcurrencyAttribute); writer.Write("EditorAttribute", (byte)this.EditorAttribute); writer.Write("PropertyFlags", (byte)this.PropertyFlags); writer.Write("ObjectVersion", ObjectVersion); }
public virtual void Serialize(IPayloadWriter writer) { writer.Write("Name", this.Name); writer.Write("Index", this.Index); writer.Write("ETag", this.ETag); writer.Write("Attributes", this.Attributes); writer.Write("PropertyType", this.PropertyType); writer.Write("Value", this.Value); }
public static void Serialize(IPayloadWriter writer, EvictionPolicy policy) { if (policy == null) { writer.Write("Type", (byte)EvictionType.None); } else { policy.Serialize(writer); } }
public static void Serialize(IPayloadWriter writer, EvictionPolicy policy) { if (policy == null) { writer.Write("Type", (byte)EvictionType.None); } else { policy.Serialize(writer); } }
public static void WriteToStream(this IEnumerable <EventSet> events, Stream stream, PayloadFormat format) { IPayloadWriter writer = null; if (format == PayloadFormat.Binary) { writer = new BinaryPayloadWriter(stream); } else { writer = new JsonPayloadWriter(stream); } using (writer) { writer.Write(string.Empty, events); } }
public virtual void Serialize(IPayloadWriter writer) { writer.Write("Type", (byte)this.Type); writer.Write("ScanPeriod", ScanPeriod.Ticks); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("ObjectId", ObjectId); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Name", Name); writer.Write("Id", Id); writer.Write("Created", Created); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Message", Message); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("SubscriptionId", SubscriptionId); writer.Write("SharedObjectNamespace", SharedObjectNamespace); writer.Write("SharedObjectNamespaceLifetime", (byte)SharedObjectNamespaceLifetime); writer.Write("PrincipalPayload", PrincipalPayload); writer.Write("Version", SenderVersion); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Identity", this.Identity); writer.Write("Message", this.Message); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Action", (byte)Action); writer.Write("EntryId", this.EntryId); writer.Write("Policy", this.Policy); }
public void Serialize(IPayloadWriter writer) { writer.Write("Values", this.dictionary.Values); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("PropertyIndex", this.PropertyIndex); writer.Write("PropertyName", this.PropertyName); }
public virtual void Serialize(IPayloadWriter writer) { writer.Write("Type", (byte)this.Type); writer.Write("ScanPeriod", ScanPeriod.Ticks); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("MaxObjectCount", this.MaxObjectCount); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("TimestampPropertyName", this.TimestampPropertyName); writer.Write("MaxObjectDuration", MaxObjectDuration.Ticks); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("TimestampPropertyName", this.TimestampPropertyName); writer.Write("MaxObjectDuration", MaxObjectDuration.Ticks); }
public void Serialize(IPayloadWriter writer) { writer.Write("ClientId", ClientId); writer.Write("Version", Version); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("RequiredRights", (Int32)this.RequiredRights); }
public void Serialize(IPayloadWriter writer) { writer.Write("Sequence", this.Sequence); writer.Write("ChannelName", this.ChannelName); writer.Write("Payloads", this.Payloads); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("CollectionId", this.CollectionId); writer.Write("CollectionName", this.CollectionName); }
public void Serialize(IPayloadWriter writer) { writer.Write("Sequence", this.Sequence); writer.Write("ChannelName", this.ChannelName); writer.Write("Payloads", this.Payloads); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("SecurityAction", (byte)SecurityAction); writer.Write("Security", this.SharedObjectSecurity); }
public void Serialize(IPayloadWriter writer) { writer.Write("Id", this.Id); writer.Write("Index", this.Index); }
public virtual void Serialize(IPayloadWriter writer) { Debug.Assert(ClientId != Constants.RootId, "The Namespace RootId has mistakenly been passed in as the ClientId, change the Payload constructor to take client.ClientId instead of client.Id"); // Write header information writer.Write("PayloadType", (byte)PayloadType); writer.Write("PayloadId", (UInt16)PayloadId); writer.Write("ClientId", ClientId); }
public void Serialize(IPayloadWriter writer) { writer.Write("ClientId", ClientId); writer.Write("Version", Version); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); if (Command == null) { writer.Write("Command", string.Empty); } else { writer.Write(Command.GetType().AssemblyQualifiedName); Command.Serialize(writer); } }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Id", this.Id); writer.Write("Name", this.Name); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("PrincipalPayload", this.PrincipalPayload); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Object", this.ObjectPayload); writer.Write("Mode", (byte)Mode); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Parent", this.Parent); writer.Write("ObjectId", ObjectId); writer.Write("ApplyPayload", ApplyPayload); writer.Write("OperationSequence", OperationSequence); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Attributes", this.Attributes); writer.Write("Type", this.Type); writer.Write("IsDynamic", this.IsDynamic); writer.Write("SharedProperties", SharedProperties.Values); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Object", ObjectPayload); writer.Write("Created", Created); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("MaxObjectCount", this.MaxObjectCount); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Type", this.Type); writer.Write("Mode", (byte)Mode); writer.Write("CollectionType", (byte)CollectionType); }
/// <summary> /// Format of the event payload byte array: /// /// First Byte: EventType /// Next 16 bytes: ClientId Guid. /// Next 16 bytes: ApplicationId Guid. /// Next 16 bytes: Shared Object Id /// /// Next 4 bytes: 32 bit integer representing length of the encoded string name of the /// changed property /// /// Next n bytes: encoded string name of the changed property /// Remaining bytes: serialized property value. /// </summary> public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("ETag", this.ETag); writer.Write("ObjectId", this.ObjectId); writer.Write("PropertyIndex", this.PropertyIndex); writer.Write("PropertyName", this.PropertyName); writer.Write("PropertyType", this.PropertyType); writer.Write("PropertyValue", this.PropertyValue); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("States", this.CollectionStates, (w, x) => { w.Write("Key", x.Key); w.Write("Value", x.Value); w.Write("Checksum", this.CollectionChecksums[x.Key]); }); }
public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); writer.Write("Operator", (byte)this.AtomicOperator); writer.Write("ObjectId", this.ObjectId); writer.Write("PropertyIndex", this.PropertyIndex); writer.Write("PropertyType", this.PropertyType); writer.Write("Parameters", this.Parameters); }
public void Serialize(IPayloadWriter writer) { writer.Write("Major", this.Major); writer.Write("Minor", this.Minor); }
/// <summary> /// Format of the event payload byte array: /// /// First Byte: EventType /// Next 16 bytes: ClientId Guid. /// Next 16 bytes: ApplicationId Guid. /// Next 4 bytes: 32 bit integer representing length of the encoded string containing /// the Name /// /// Next n bytes: encoded string the Name property /// </summary> public override void Serialize(IPayloadWriter writer) { base.Serialize(writer); //Payload.Serialize will re-insert the EventType at Byte #3 writer.Write("Error", (byte)this.Error); writer.Write("Name", this.Name); writer.Write("Description", this.Description); }