private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType) { RefresherId = refresher.RefresherUniqueId; RefreshType = refreshType; //set default - this value is not used for reading after it's been deserialized, it's only used for persisting the instruction to the db JsonIdCount = 1; }
// need this public one so it can be de-serialized - used by the Json thing // otherwise, should use GetInstructions(...) public RefreshInstruction(Guid refresherId, RefreshMethodType refreshType, Guid guidId, int intId, string jsonIds, string jsonPayload) { RefresherId = refresherId; RefreshType = refreshType; GuidId = guidId; IntId = intId; JsonIds = jsonIds; JsonPayload = jsonPayload; }
// need this public one so it can be de-serialized - used by the Json thing // otherwise, should use GetInstructions(...) public RefreshInstruction(Guid refresherId, RefreshMethodType refreshType, Guid guidId, int intId, string jsonIds, string jsonPayload) { RefresherId = refresherId; RefreshType = refreshType; GuidId = guidId; IntId = intId; JsonIds = jsonIds; JsonPayload = jsonPayload; //set default - this value is not used for reading after it's been deserialized, it's only used for persisting the instruction to the db JsonIdCount = 1; }
private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, string json) : this(refresher, refreshType) { if (refreshType == RefreshMethodType.RefreshByJson) { JsonPayload = json; } else { JsonIds = json; } }
private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, int intId) : this(refresher, refreshType) { IntId = intId; }
private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, Guid guidId) : this(refresher, refreshType) { GuidId = guidId; }
private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType) { RefresherId = refresher.UniqueIdentifier; RefreshType = refreshType; }