Source/NFX/ServiceModel/Service.cs
/// <summary>
/// Blocking call that starts the service instance
/// </summary>
Blocking call that starts the service instance
Blocking call that starts the service instance
public void Start()
            {
                EnsureObjectNotDisposed();
                lock (m_StatusLock)
                    if (m_Status == ControlStatus.Inactive)
                    {
                        m_Status = ControlStatus.Starting;
                        try
                        {
                          Behavior.ApplyBehaviorAttributes(this);
                          DoStart();
                          m_Status = ControlStatus.Active;
                        }
                        catch
                        {
                          m_Status = ControlStatus.Inactive;
                          throw;
                        }
                    }
            }
public void Start ( ) { EnsureObjectNotDisposed ( ) ; lock ( m_StatusLock ) if ( m_Status == ControlStatus . Inactive ) { m_Status = ControlStatus . Starting ; try { Behavior . ApplyBehaviorAttributes ( this ) ; DoStart ( ) ; m_Status = ControlStatus . Active ; } catch { m_Status = ControlStatus . Inactive ; throw ; } } }
Blocking call that starts the service instance
Blocking call that starts the service instance