Esempio n. 1
0
        public static bool Stop(string name, string displayName)
        {
            if (_isLinux)
            {
                return(LinuxService.Stop(name, displayName));
            }

            return(SystemServicesService.Stop(name, displayName));
        }
Esempio n. 2
0
        public static string GetStatus(string name, string displayName)
        {
            if (_isLinux)
            {
                return(LinuxService.GetStatus(name, displayName));
            }

            return(SystemServicesService.GetStatus(name, displayName));
        }