1using System.ComponentModel;
11 public class ErrorModel(
ThingError Error) : INotifyPropertyChanged
23 public DateTime Timestamp => this.error.
Timestamp;
33 bool ErrorMessageChanged = this.error.ErrorMessage != value.
ErrorMessage;
34 bool TimestampChanged = this.error.Timestamp != value.Timestamp;
38 if (ErrorMessageChanged)
39 this.RaisePropertyChanged(nameof(this.ErrorMessage));
42 this.RaisePropertyChanged(nameof(this.Timestamp));
46 private void RaisePropertyChanged(
string Name)
50 this.PropertyChanged?.Invoke(
this,
new PropertyChangedEventArgs(Name));
61 public event PropertyChangedEventHandler? PropertyChanged;
Static class managing the application event log. Applications and services log events on this static ...
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
Contains information about an error on a thing
DateTime Timestamp
Timestamp of error.
string ErrorMessage
Error message.