Example #1
0
        public WindowsServiceCheck Get(IWindowsServiceCheck check)
        {
            if (check is IWindowsServiceRunningCheck)
            {
                return(WindowsServiceCheck.IsRunning(check));
            }

            throw new ArgumentException();
        }