public virtual void SetSeverity(ISystemContext context, EventSeverity severity) { this.LastSeverity.Value = this.Severity.Value; this.Severity.Value = (ushort)severity; if (this.LastSeverity.SourceTimestamp != null) { this.LastSeverity.SourceTimestamp.Value = DateTime.UtcNow; } }