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