private void Fatal(BasicReturnEventArgs a) { lock (_oSendLock) { if (OnFatal != null) { OnFatal.Invoke(this, a); } else { throw new ApplicationException("No subscribers for fatal error event"); } } }
public static void Fatal(string message, params object[] args) { OnFatal?.Invoke(message, args); Print("Fatal", message, args); }
protected override void GatedFatal(string message) { OnFatal?.Invoke(message); OnLog?.Invoke(LogLevel.Fatal, message); }
public static void Fatal(string message, [CallerFilePath] string file = "", [CallerLineNumber] int line = 0) => OnFatal?.Invoke(message, file, line);