Bespoke.DynamicDnsUpdater.WindowsServiceInstallerCustomActions.CustomActions.StartService C# (CSharp) Метод

StartService() приватный Метод

private StartService ( Microsoft.Deployment.WindowsInstaller.Session session ) : ActionResult
session Microsoft.Deployment.WindowsInstaller.Session
Результат ActionResult
        public static ActionResult StartService(Session session)
        {
            var controller = new ServiceController("BespokeDynamicDnsUpdaterService");
            controller.Start();

            return ActionResult.Success;
        }