示例#1
0
        public DataService()
        {
            _mqtt     = new Mqtt();
            _database = InfluxDBConnector.GetInstance();

            ServiceCreated += OnServiceCreated;
            ServiceCreated?.Invoke(this, EventArgs.Empty);
        }
示例#2
0
 //private IHubContext<MessageHub> _hubContext;
 public AnalyticsService()
 {
     _mqtt     = new Mqtt();
     _database = InfluxDBConnector.GetInstance();
     //_hubContext = null;
     _model          = new WeatherAnalyzer();
     ServiceCreated += OnServiceCreated;
     ServiceCreated?.Invoke(this, EventArgs.Empty);
 }