public static void Serialize(IPayloadWriter writer, EvictionPolicy policy) { if (policy == null) { writer.Write("Type", (byte)EvictionType.None); } else { policy.Serialize(writer); } }
public EvictionPolicyPayload(PayloadAction action, EvictionPolicy policy, Guid entryId, Guid clientId, ushort payloadId) : base(clientId, payloadId) { this.Action = action; this.Policy = policy; this.EntryId = entryId; }