private void AppendDataPoint(ComponentStateChangedEventArgs eventArgs)
        {
            ////string line = DateTime.Now.ToString("O") + "," + eventArgs.NewState.ToString() + Environment.NewLine;

            ////lock (_syncRoot)
            ////{
            ////    try
            ////    {
            ////        File.AppendAllText(_filename, line);
            ////    }
            ////    catch (Exception exception)
            ////    {
            ////        Log.Error(exception, $"Error while adding data point for component {_component.Id}.");
            ////    }
            ////}
        }
 private void CreateDataPointAsync(object sender, ComponentStateChangedEventArgs e)
 {
     //Task.Run(() => AppendDataPoint(e));
 }