Ejemplo n.º 1
0
        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}.");
            ////    }
            ////}
        }
Ejemplo n.º 2
0
 private void CreateDataPointAsync(object sender, ComponentStateChangedEventArgs e)
 {
     //Task.Run(() => AppendDataPoint(e));
 }