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(); }
public MissileService(Launcher launcher) { this.launcher = launcher; }