|
|
|
@ -9,10 +9,10 @@ public interface IDialogErrorHandler
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Shows a generic error snackbar with the given message. |
|
|
|
|
/// </summary> |
|
|
|
|
void ShowSnackbarAsync(string message, LogLevel level = LogLevel.Error, int timeoutSeconds = 5); |
|
|
|
|
void ShowSnackbarAsync(string message, LogLevel level = LogLevel.Error, int timeoutMilliseconds = 5000); |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Attempt to run the given action, showing a generic error snackbar if it fails. |
|
|
|
|
/// </summary> |
|
|
|
|
Task<TaskResult<T>> TryAsync<T>(Task<T> task, string message, LogLevel level = LogLevel.Error, int timeoutSeconds = 5); |
|
|
|
|
Task<TaskResult<T>> TryAsync<T>(Task<T> task, string message, LogLevel level = LogLevel.Error, int timeoutMilliseconds = 5000); |
|
|
|
|
} |
|
|
|
|