Ejemplo 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);
         }
     }
 }
Ejemplo 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);
         }
     }
 }