src/openSourceC.DotNetLibrary.Core/Threading/ServiceThreadSet.cs
/// <summary>
///		Blocks the calling thread until the specified service thread instance terminates,
///		while continuing to perform standard COM and SendMessage pumping.
/// </summary>
/// <param name="instanceId">The unique service thread instance identifier to remove.</param>
/// <returns>
///		<b>true</b> if the service thread instance is successfully removed; otherwise,
///		<b>false</b>. This method also returns false if the instance was not found.
/// </returns>
Blocks the calling thread until the specified service thread instance terminates,
while continuing to perform standard COM and SendMessage pumping.
Blocks the calling thread until the specified service thread instance terminates while continuing to perform standard COM and SendMessage pumping .
public bool Join(Guid instanceId)
		{
			bool removed = false;
			lock (((ICollection)_serviceThreads).SyncRoot)
			{
				if (_serviceThreads.TryGetValue(instanceId, out ServiceThread? serviceThread))
				{
					serviceThread.Thread.Join();
					removed = _serviceThreads.Remove(instanceId);
				}
			}
			return removed;
		}
public bool Join ( Guid instanceId ) { bool removed = false ; lock ( ( ( ICollection ) _serviceThreads ) . SyncRoot ) { if ( _serviceThreads . TryGetValue ( instanceId , out ServiceThread ? serviceThread ) ) { serviceThread . Thread . Join ( ) ; removed = _serviceThreads . Remove ( instanceId ) ; } } return removed ; }
Blocks the calling thread until the specified service thread instance terminates,
while continuing to perform standard COM and SendMessage pumping.
Blocks the calling thread until the specified service thread instance terminates while continuing to perform standard COM and SendMessage pumping .
None
instanceId
Guid
The unique service thread instance identifier to remove.
The unique service thread instance identifier to remove .