Пример #1
0
 public StatusChangeEventArgs(string key, object oldValue, object newValue)
 {
     Timestamp      = new DateTime();
     Key            = key;
     OldValue       = oldValue;
     OldValueString = LocalStatusLogger.FormatValue(oldValue);
     NewValue       = newValue;
     NewValueString = LocalStatusLogger.FormatValue(newValue);
 }
Пример #2
0
 public StatusLoggerWriter(LocalStatusLogger logger, string path)
 {
     Path            = path;
     logger.Changed += OnChanged;
 }
Пример #3
0
 public static LocalStatusLogger GetInstance()
 {
     return(instance ?? (instance = new LocalStatusLogger()));
 }