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); }
public async Task FetchSegment(string segmentName) { Name = segmentName; _gates.RegisterSegment(Name); await FetchSegment(); }
public void RegisterSegment() { gates.RegisterSegment(name); }