示例#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()));
 }