Example #1
0
        /// <summary>
        /// Stops the service application.
        /// </summary>
        /// <param name="serviceApp">The service app to stop.</param>
        public void StopServiceApp(ServiceApp serviceApp)
        {
            this.TryExecute(
                () =>
            {
                IServiceAppClient client = this.factory.Create <IServiceAppClient>();
                client.StopServiceApp(serviceApp.Name);
                Thread.Sleep(2000);     // artificial wait just to allow the async tasks a little bit of time to update
            },
                true);

            this.LoadServiceApps();
        }