コード例 #1
0
ファイル: Program.cs プロジェクト: brandongrossutti/DotCopter
 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);
         }
     }
 }
コード例 #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);
         }
     }
 }