コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #4
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, string json)
     : this(refresher, refreshType)
 {
     if (refreshType == RefreshMethodType.RefreshByJson)
     {
         JsonPayload = json;
     }
     else
     {
         JsonIds = json;
     }
 }
コード例 #5
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, int intId)
     : this(refresher, refreshType)
 {
     IntId = intId;
 }
コード例 #6
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, Guid guidId)
     : this(refresher, refreshType)
 {
     GuidId = guidId;
 }
コード例 #7
0
 private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType)
 {
     RefresherId = refresher.UniqueIdentifier;
     RefreshType = refreshType;
 }