4 instantiations of ServiceController
System.ServiceProcess.ServiceController (4)
System\ServiceProcess\ServiceController.cs (4)
221_dependentServices[i] = new ServiceController(_machineName, status); 350dependencyHash.Add(groupMember.serviceName!, new ServiceController(MachineName, groupMember)); 356dependencyHash.Add(dependencyNameStr, new ServiceController(dependencyNameStr, MachineName)); 738return GetServices(machineName, serviceType, null, status => new ServiceController(machineName, status));
18 references to ServiceController
System.ServiceProcess (1)
System.ServiceProcess.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ServiceProcess.ServiceController))]
System.ServiceProcess.ServiceController (17)
System\ServiceProcess\ServiceController.cs (17)
38private ServiceController[]? _dependentServices; 39private ServiceController[]? _servicesDependedOn; 180public unsafe ServiceController[] DependentServices 194_dependentServices = Array.Empty<ServiceController>(); 215_dependentServices = new ServiceController[numEnumerated]; 297public unsafe ServiceController[] ServicesDependedOn 308_servicesDependedOn = Array.Empty<ServiceController>(); 326Dictionary<string, ServiceController>? dependencyHash = null; 334dependencyHash = new Dictionary<string, ServiceController>(); 364_servicesDependedOn = new ServiceController[dependencyHash.Count]; 369_servicesDependedOn = Array.Empty<ServiceController>(); 661public static ServiceController[] GetDevices() 671public static ServiceController[] GetDevices(string machineName) 701public static ServiceController[] GetServices() 711public static ServiceController[] GetServices(string machineName) 733private static ServiceController[] GetServicesOfType(string machineName, int serviceType) 947ServiceController currentDependent = DependentServices[i];