Example #1
0
 private ServiceInformation GetServiceInformation()
 {
     try
     {
         return(ServiceUtils.GetServiceInformation(Name));
     }
     catch (SafeWin32Exception)
     {
         return(new ServiceInformation(Name, null, new ServiceTriggerInformation[0]));
     }
 }
 private ServiceInformation GetServiceInformation()
 {
     try
     {
         return(ServiceUtils.GetServiceInformation(Name));
     }
     catch (SafeWin32Exception)
     {
         return(new ServiceInformation(Name, null,
                                       new ServiceTriggerInformation[0], ServiceSidType.None,
                                       ServiceLaunchProtectedType.None, new string[0]));
     }
 }
Example #3
0
 private ServiceInformation GetServiceInformation()
 {
     return(ServiceUtils.GetServiceInformation(Name,
                                               false).GetResultOrDefault(new ServiceInformation(Name)));
 }