コード例 #1
0
        public ProcessStatistics()
        {
            var clt = new ClientStartup();

            _client = clt.StartClientWithRetriesSync();
            _addStatisticsGrainPool = new GrainsManageStatisticsPool <MonitoredProcess>(_client, 100);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }