Пример #1
0
 public static void Main(string[] args)
 {
     using (USBMissileLauncher dev = new USBMissileLauncher()){
         RocketService  DemoServices = new RocketService(dev);
         WebServiceHost _serviceHost = new WebServiceHost(DemoServices,
                                                          new Uri("http://localhost:8000/RocketService"));
         _serviceHost.Open();
         Console.ReadKey();
         _serviceHost.Close();
     }
     //Fire ();
 }
Пример #2
0
 public RocketService(USBMissileLauncher launcher)
 {
     this.launcher = launcher;
 }