Exemple #1
0
        private void MainPage_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            launcher = Task.Run(Launcher.CreateAsync).Result;
            Task.Run(() => launcher.SetLightAsync(true));

            var busAttachment = new AllJoynBusAttachment();
            busAttachment.AuthenticationMechanisms.Add(AllJoynAuthenticationMechanism.SrpAnonymous);

            var producer = new missileProducer(busAttachment);
            producer.Service = new MissileService(launcher);

            producer.Start();
        }
Exemple #2
0
 public MissileService(Launcher launcher)
 {
     this.launcher = launcher;
 }