Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 // 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;
 }
Ejemplo n.º 3
0
 // 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;
 }
Ejemplo n.º 4
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, string json)
     : this(refresher, refreshType)
 {
     if (refreshType == RefreshMethodType.RefreshByJson)
     {
         JsonPayload = json;
     }
     else
     {
         JsonIds = json;
     }
 }
Ejemplo n.º 5
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, int intId)
     : this(refresher, refreshType)
 {
     IntId = intId;
 }
Ejemplo n.º 6
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, Guid guidId)
     : this(refresher, refreshType)
 {
     GuidId = guidId;
 }
Ejemplo n.º 7
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType)
 {
     RefresherId = refresher.UniqueIdentifier;
     RefreshType = refreshType;
 }