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; }
public static string ConstructCacheIdentity(string entityName, int partitionIndex, CachePrimingMode primingMode) { return(string.Format("{0}:{1}:{2}", entityName, partitionIndex, primingMode)); }