Esempio n. 1
0
 public static void Main()
 {
     // Discover an eventing service
     using (MyClient client = new MyClient())
     {
         string serviceTransportAddress = client.FindFirst(EventingServiceController.c_serviceTypeName,
                                                           EventingServiceController.c_namespaceUri);
         if (serviceTransportAddress != null)
         {
             EventingServiceController controller = new EventingServiceController(serviceTransportAddress);
             Thread.Sleep(Timeout.Infinite);
         }
     }
 }
Esempio n. 2
0
 public static void Main()
 {
     // Discover an eventing service
     using (MyClient client = new MyClient())
     {
         string serviceTransportAddress = client.FindFirst(EventingServiceController.c_serviceTypeName,
                                                           EventingServiceController.c_namespaceUri);
         if (serviceTransportAddress != null)
         {
             EventingServiceController controller = new EventingServiceController(serviceTransportAddress);
             Thread.Sleep(Timeout.Infinite);
         }
     }
 }