Beispiel #1
0
 public CacheWorkSliceCookie(string entityName, int partitionIndex, CachePrimingMode primingMode)
 {
     this.EntityName       = entityName;
     this.PartitionIndex   = partitionIndex;
     this.PrimingMode      = primingMode;
     this.LastSyncTime     = DateTime.MinValue;
     this.LastFullSyncTime = DateTime.MinValue;
     this.CookieOffset     = -1L;
     this.DBRead           = false;
 }
Beispiel #2
0
 public static string ConstructCacheIdentity(string entityName, int partitionIndex, CachePrimingMode primingMode)
 {
     return(string.Format("{0}:{1}:{2}", entityName, partitionIndex, primingMode));
 }