コード例 #1
0
        private async Task TestConnection()
        {
            await new SynchronizationContextRemover();
            StatusIndicator.Busy();
            DispatchOnUiThread(() =>
            {
                Notifications.ClearNotificationsOfType(NotificationType.Error);
                Notifications.ClearNotificationsOfType(NotificationType.Success);
                Notifications.ClearNotificationsOfType(NotificationType.Info);
            });

            await TestConnection(BuildConnectionData());

            StatusIndicator.ClearStatus();
            DispatchOnUiThread(() => { Notifications.ClearNotificationsOfType(NotificationType.Progress); });
        }