private static void WeatherStationHistoryData(IWeatherStation weatherStation, HistoryData historyDataReport) { Console.WriteLine(JsonConvert.SerializeObject(historyDataReport)); }
protected virtual void OnHistoryData(IWeatherStation weatherStation, HistoryData historyDataReport) { var handler = HistoryData; if (handler != null) handler(weatherStation, historyDataReport); }