private static void NtpClient_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e) { if (!OtpAuthUtils.CheckInternetConnection()) { retryPollCustomNtpServer(CUSTOM_NTP_SERVER_RETRY_DELAY); } else { MessageBox.Show("Polling the NTP Server failed. Please confirm your entered address!\n\nError message:\n" + e.Exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Client_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e) { _GotResultSignal.Set(); }
private void NtpClient_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e) { _GotTimeTaskCompletionSource.SetException(e.Exception); }
private void Client_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e) { Assert.Fail(e.Exception.Message); _GotResultSignal.Set(); }
private void Client_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e) { _GotResultSignal.Set(); }
private void NtpClient_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e) { _GotTimeTaskCompletionSource.SetException(e.Exception); }