Source/NFX/ServiceModel/Service.cs
/// <summary>
/// Blocks execution of current thread until this service has completely stopped.
/// This call must be performed by only 1 thread otherwise exception is thrown
/// </summary>
Blocks execution of current thread until this service has completely stopped.
This call must be performed by only 1 thread otherwise exception is thrown
Blocks execution of current thread until this service has completely stopped . This call must be performed by only 1 thread otherwise exception is thrown
public void WaitForCompleteStop()
            {
                lock (m_StatusLock)
                {
                    if (m_Status == ControlStatus.Inactive) return;
                    if (m_Status != ControlStatus.Stopping) SignalStop();
                    if (m_PendingWaitingStop) throw new NFXException(StringConsts.SERVICE_INVALID_STATE + "{0}.{1}".Args(Name,"WaitForCompleteStop() already blocked"));
                    m_PendingWaitingStop = true;
                    try
                    {
                      DoWaitForCompleteStop();
                    }
                    finally
                    {
                      m_PendingWaitingStop = false;
                    }
                    m_Status = ControlStatus.Inactive;
                }
            }
public void WaitForCompleteStop ( ) { lock ( m_StatusLock ) { if ( m_Status == ControlStatus . Inactive ) return ; if ( m_Status != ControlStatus . Stopping ) SignalStop ( ) ; if ( m_PendingWaitingStop ) throw new NFXException ( StringConsts . SERVICE_INVALID_STATE + " " . Args ( Name , " " ) ) ; m_PendingWaitingStop = true ; try { DoWaitForCompleteStop ( ) ; } finally { m_PendingWaitingStop = false ; } m_Status = ControlStatus . Inactive ; } }
Blocks execution of current thread until this service has completely stopped.
Blocks execution of current thread until this service has completely stopped .