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);
     }
 }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 private void publishService_DidNotPublishService(NetService service, DNSServiceException exception)
 {
 }
Beispiel #5
0
        private void FailedToPublishService(NetService service, DNSServiceException error)
        {
            string msg = String.Format("Failed to publish service {0}", service.Name);

            Log.Warn(msg, error);
        }
Beispiel #6
0
 void publishService_DidNotPublishService(NetService service, DNSServiceException exception)
 {
     Debug.WriteLine("error");
 }
Beispiel #7
0
 /// <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);
 }
Beispiel #8
0
 /// <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;
 }
Beispiel #9
0
 protected void NetServiceDidNotResolve(NetService sender, DNSServiceException exception)
 {
     logger.TraceEvent(TraceEventType.Verbose, 0, String.Format("{0}: didNotResolve: {1}", sender, exception));
 }