public void RegisterMetricsPublisher(IHystrixMetricsPublisher implementation) { if (!this.metricsPublisher.CompareAndSet(null, implementation)) { throw new InvalidOperationException("Another strategy was alread registered."); } }
internal HystrixMetricsPublisherFactory(IHystrixMetricsPublisher strategy) { this.strategy = strategy; }