static void Main(string[] args) { Title = "Ch22Ex03Client"; WriteLine("Press enter to begin."); ReadLine(); WriteLine("Opening channel."); IAppControlService client = ChannelFactory <IAppControlService> .CreateChannel( new NetTcpBinding(), new EndpointAddress( "net.tcp://localhost:8081/AppControlService")); WriteLine("Creating sun."); client.SetRadius(100, "yellow", 3); WriteLine("Press enter to continue."); ReadLine(); WriteLine("Growing sun to red giant."); client.SetRadius(200, "Red", 5); WriteLine("Press enter to continue."); ReadLine(); WriteLine("Collapsing sun to neutron star."); client.SetRadius(50, "AliceBlue", 2); WriteLine("Finished. Press enter to exit."); ReadLine(); }
public UMPApp(IRegionManager regionManager, IEventAggregator eventAggregator, IAppControlService appController) : this(true) { RegionManager = regionManager; EventAggregator = eventAggregator; AppController = appController; if (EventAggregator != null) { EventAggregator.GetEvent <AppCommunicationEvent>() .Subscribe(AppCommunicationEvent_Published, ThreadOption.BackgroundThread); } }
public S3101App(IRegionManager regionManager, IEventAggregator eventAggregator, IAppControlService appController) : base(regionManager, eventAggregator, appController) { }