public void OnCriticalError(string code, string message, string currentFile, long currentPosition) { CriticalError?.Invoke(code, message, currentFile, currentPosition); }
public void OnCriticalError(string code, string message, string currentFile, long currentPosition) { Console.WriteLine($"[{HostIdentifier}][{nameof(OnCriticalError)}] {message} (code: {code}, current file: {currentFile}, currentPosition: {currentPosition})"); CriticalError?.Invoke(code, message, currentFile, currentPosition); }
public void OnCriticalError(string msg) { CriticalError?.Invoke(msg); }
void IXAudio2EngineCallback.OnCriticalError(int error) { CriticalError?.Invoke(this, new XAudio2CriticalErrorEventArgs(error)); }
/// <summary> /// Raises the critical error event /// </summary> /// <param name="e">the arguments for this event</param> protected virtual void OnCriticalError(CriticalErrorEventArgs e) { CriticalError?.Invoke(this, e); }