6 writes to _machineName
System.ServiceProcess.ServiceController (6)
System\ServiceProcess\ServiceController.cs (6)
44_machineName = DefaultMachineName; 74_machineName = machineName; 84_machineName = machineName; 103_machineName = machineName; 252_machineName = value; 257_machineName = value;
14 references to _machineName
System.ServiceProcess.ServiceController (14)
System\ServiceProcess\ServiceController.cs (14)
221_dependentServices[i] = new ServiceController(_machineName, status); 241return _machineName; 248if (string.Equals(_machineName, value, StringComparison.OrdinalIgnoreCase)) 346Interop.Advapi32.ENUM_SERVICE_STATUS_PROCESS[] loadGroup = GetServicesInGroup(_machineName, dependencyNameStr.Substring(1)); 542throw new InvalidOperationException(SR.Format(SR.NoService, userGivenName, _machineName), new Win32Exception(Interop.Errors.ERROR_SERVICE_DOES_NOT_EXIST)); 556throw new InvalidOperationException(SR.Format(SR.NoService, _name, _machineName), new Win32Exception(Interop.Errors.ERROR_SERVICE_DOES_NOT_EXIST)); 589throw new InvalidOperationException(SR.Format(SR.NoService, serviceDisplayName, _machineName), new Win32Exception(lastError)); 619throw new InvalidOperationException(SR.Format(SR.NoService, serviceName, _machineName), new Win32Exception(lastError)); 654_serviceManagerHandle ??= GetDataBaseHandleWithAccess(_machineName, Interop.Advapi32.ServiceControllerOptions.SC_MANAGER_CONNECT); 691throw new InvalidOperationException(SR.Format(SR.OpenService, ServiceName, _machineName), inner); 812throw new InvalidOperationException(SR.Format(SR.PauseService, ServiceName, _machineName), inner); 827throw new InvalidOperationException(SR.Format(SR.ResumeService, ServiceName, _machineName), inner); 901throw new InvalidOperationException(SR.Format(SR.CannotStart, ServiceName, _machineName), inner); 962throw new InvalidOperationException(SR.Format(SR.StopService, ServiceName, _machineName), inner);