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);
241
return
_machineName
;
248
if (string.Equals(
_machineName
, value, StringComparison.OrdinalIgnoreCase))
346
Interop.Advapi32.ENUM_SERVICE_STATUS_PROCESS[] loadGroup = GetServicesInGroup(
_machineName
, dependencyNameStr.Substring(1));
542
throw new InvalidOperationException(SR.Format(SR.NoService, userGivenName,
_machineName
), new Win32Exception(Interop.Errors.ERROR_SERVICE_DOES_NOT_EXIST));
556
throw new InvalidOperationException(SR.Format(SR.NoService, _name,
_machineName
), new Win32Exception(Interop.Errors.ERROR_SERVICE_DOES_NOT_EXIST));
589
throw new InvalidOperationException(SR.Format(SR.NoService, serviceDisplayName,
_machineName
), new Win32Exception(lastError));
619
throw new InvalidOperationException(SR.Format(SR.NoService, serviceName,
_machineName
), new Win32Exception(lastError));
654
_serviceManagerHandle ??= GetDataBaseHandleWithAccess(
_machineName
, Interop.Advapi32.ServiceControllerOptions.SC_MANAGER_CONNECT);
691
throw new InvalidOperationException(SR.Format(SR.OpenService, ServiceName,
_machineName
), inner);
812
throw new InvalidOperationException(SR.Format(SR.PauseService, ServiceName,
_machineName
), inner);
827
throw new InvalidOperationException(SR.Format(SR.ResumeService, ServiceName,
_machineName
), inner);
901
throw new InvalidOperationException(SR.Format(SR.CannotStart, ServiceName,
_machineName
), inner);
962
throw new InvalidOperationException(SR.Format(SR.StopService, ServiceName,
_machineName
), inner);