예제 #1
0
 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;
 }
 internal HystrixMetricsPublisherFactory(IHystrixMetricsPublisher strategy)
 {
     this.strategy = strategy;
 }