コード例 #1
0
 protected CounterOperationsBase(CounterStore parent, string counterStorageName)
 {
     credentials        = parent.Credentials;
     jsonRequestFactory = parent.JsonRequestFactory;
     ServerUrl          = parent.Url;
     CounterStorageUrl  = string.Format(CultureInfo.InvariantCulture, "{0}/cs/{1}", ServerUrl, counterStorageName);
     countersConvention = parent.CountersConvention;
 }
コード例 #2
0
 internal CounterReplicationInformer(HttpJsonRequestFactory requestFactory, CounterStore counterStore, CountersConvention countersConvention, int delayTimeInMiliSec = 1000)
 {
     currentReadStripingBase = 0;
     ReplicationDestinations = new List <CounterReplicationDestination>();
     this.requestFactory     = requestFactory;
     this.counterStore       = counterStore;
     this.countersConvention = countersConvention;
     this.delayTimeInMiliSec = delayTimeInMiliSec;
     failureCounters         = new FailureCounters();
     firstTime             = true;
     lastReplicationUpdate = SystemTime.UtcNow;
     MaxIntervalBetweenUpdatesInMilliseconds = TimeSpan.FromMinutes(DefaultIntervalBetweenUpdatesInMinutes).TotalMilliseconds;
 }