public ProcessStatistics() { var clt = new ClientStartup(); _client = clt.StartClientWithRetriesSync(); _addStatisticsGrainPool = new GrainsManageStatisticsPool <MonitoredProcess>(_client, 100); }
public MeanTemperatureValues(OnlineMeteoStatisticsSettings settings) : base(settings.SchedulerSettings) { var clt = new ClientStartup(); _client = clt.StartClientWithRetriesSync(); _addDevicesGrainPool = new GrainsManageStatisticsPool <DeviceMeanValues>(_client, 10); _getStatisticsGrainPool = new GrainsGetStatisticsPool <DeviceValues>(_client, 10); }
public NarodMonPolling(OnlineMeteoStatisticsSettings settings, IHttpClientFactory httpClientFactory) { _httpClientFactory = httpClientFactory; var clt = new ClientStartup(); _client = clt.StartClientWithRetriesSync(); _settings = settings; _addStatisticsGrainPool = new GrainsManageStatisticsPool <DeviceValues>(_client, 10); _addDevicesGrainPool = new GrainsManageStatisticsPool <Device>(_client, 3); _getDevicesGrainPool = new GrainsGetStatisticsPool <DeviceValues>(_client, 3); }