public SelfRefreshingSegment(string name, ISegmentChangeFetcher segmentChangeFetcher, IReadinessGatesCache gates, ISegmentCache segmentCache)
 {
     this.name = name;
     this.segmentChangeFetcher = segmentChangeFetcher;
     this.segmentCache         = segmentCache;
     this.gates = gates;
     gates.RegisterSegment(name);
 }
Example #2
0
 public async Task FetchSegment(string segmentName)
 {
     Name = segmentName;
     _gates.RegisterSegment(Name);
     await FetchSegment();
 }
Example #3
0
 public void RegisterSegment()
 {
     gates.RegisterSegment(name);
 }