Opc.Ua.Configuration.ServiceManager.GetServiceProcessorAffinity C# (CSharp) Method

GetServiceProcessorAffinity() public static method

Gets the affinity for the service with the given name.
If the system has 2 processor and the service is running on processor 2 the affinity bit mask will be : [true][false] If the system has 2 processor and the service is running on both processors the affinity bit mask will be : [true][true]
public static GetServiceProcessorAffinity ( string serviceName ) : bool[]
serviceName string the service name.
return bool[]
        public static bool[] GetServiceProcessorAffinity(string serviceName)
        {
            Service service = GetService(serviceName);
            int processId = service != null ? service.ProcessId : 0;
            return GetProcessorAffinity(processId);
        }