/// <inheritdoc /> public ulong?GetActivePeakMemoryUsage() { try { if (Process == null || Process.HasExited) { return(null); } return(Dispatch.GetActivePeakMemoryUsage(Process.Handle, ProcessId)); } catch (Exception) { return(null); } }
/// <inheritdoc /> public ulong?GetActivePeakMemoryUsage() { try { if (Process == null || Process.HasExited) { return(null); } return(Dispatch.GetActivePeakMemoryUsage(Process.Handle, ProcessId)); } #pragma warning disable ERP022 // Unobserved exception in generic exception handler catch { return(null); } #pragma warning restore ERP022 // Unobserved exception in generic exception handler }