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