protected virtual void OnDidNotPublishService(NetService service, DNSServiceException exception) { Logger.Debug("Bonjour: Failed to publish service '{0}' - {1}", service.Name, exception.Message); if (DidNotPublishService != null) { DidNotPublishService(service, exception); } }
void publishService_DidNotPublishService(NetService service, DNSServiceException exception) { MessageBox.Show(String.Format("A DNSServiceException occured: {0}", exception.Message), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); serviceNameTextBox.Enabled = true; serviceTypeTextBox.Enabled = true; portTextBox.Enabled = true; startStopButton.Text = "Publish"; startStopButton.Enabled = true; mPublishing = false; }
/// <summary> /// /// </summary> /// <param name="service"></param> /// <param name="exception"></param> static private void publishService_DidNotPublishService(NetService service, DNSServiceException exception) { MessageBox.Show(String.Format("A DNSServiceException: {0}", exception.Message), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); }
private void publishService_DidNotPublishService(NetService service, DNSServiceException exception) { }
private void FailedToPublishService(NetService service, DNSServiceException error) { string msg = String.Format("Failed to publish service {0}", service.Name); Log.Warn(msg, error); }
void publishService_DidNotPublishService(NetService service, DNSServiceException exception) { Debug.WriteLine("error"); }
/// <summary> /// Callback when the service publishing FAILS using mDNS. /// </summary> /// <param name="service">the NetService NOT published</param> /// <param name="exception">the Exception reason why the service was not published</param> void publishService_DidNotPublishService(NetService service, DNSServiceException exception) { Console.WriteLine("DNSServiceException occured: {0}", exception.Message); }
/// <summary> /// Service couldn't be published /// </summary> /// <param name="service"></param> /// <param name="exception"></param> void publishService_DidNotPublishService(NetService service, DNSServiceException exception) { LogMessage(String.Format("Bonjour publish error: {0}", exception.Message), LogType.Error); servicePublishing = false; }
protected void NetServiceDidNotResolve(NetService sender, DNSServiceException exception) { logger.TraceEvent(TraceEventType.Verbose, 0, String.Format("{0}: didNotResolve: {1}", sender, exception)); }