src/openSourceC.DotNetLibrary.Core/Threading/ServiceThreadSet.cs
/// <summary>
///		Add the specified <see cref="T:IService"/> object to the service thread set and
///		start executing the <see cref="M:IService.Execute()"/> method.
/// </summary>
/// <param name="service">The <see cref="T:IService"/> object.</param>
/// <returns>
///		The unique service thread instance identifier.
/// </returns>
Add the specified  object to the service thread set and
start executing the  method.
Add the specified object to the service thread set and start executing the method .
public Guid AddStart(IService service)
		{
			ServiceThread serviceThread;
			lock (((ICollection)_serviceThreads).SyncRoot)
			{
				serviceThread = new ServiceThread(
					service ?? throw new ArgumentNullException(nameof(service)),
					new Thread(service.Execute)
					{
					}
				);
				serviceThread.Thread.Start();
				_serviceThreads.Add(serviceThread.InstanceId, serviceThread);
			}
			return serviceThread.InstanceId;
		}
public Guid AddStart ( IService service ) { ServiceThread serviceThread ; lock ( ( ( ICollection ) _serviceThreads ) . SyncRoot ) { serviceThread = new ServiceThread ( service ?? throw new ArgumentNullException ( nameof ( service ) ) , new Thread ( service . Execute ) { } ) ; serviceThread . Thread . Start ( ) ; _serviceThreads . Add ( serviceThread . InstanceId , serviceThread ) ; } return serviceThread . InstanceId ; }
Add the specified  object to the service thread set and
start executing the  method.
Add the specified object to the service thread set and start executing the method .
//Name = "ServiceMethod Processing",
The unique service thread instance identifier.
The unique service thread instance identifier .
service
IService
None