public async static Task AlertException(this IJSRuntime js, Exception ex) { #if (DEBUG) await js.Log(ex.ToString()); #endif await js.AlertError(ex.GetType().Name, ex.Message); }