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

            this.LoadServiceApps();
        }