Source/NFX/ServiceModel/Service.cs
/// <summary>
/// Allows to abort unsuccessful DoStart() overridden implementation.
/// This method must be called from within DoStart()
/// </summary>
Allows to abort unsuccessful DoStart() overridden implementation.
This method must be called from within DoStart()
Allows to abort unsuccessful DoStart () overridden implementation . This method must be called from within DoStart ()
protected void AbortStart()
            {
                var trace = new StackTrace(1, false);
                if (!trace.GetFrames().Any(f => f.GetMethod().Name.Equals("DoStart", StringComparison.Ordinal)))
                    Debugging.Fail(
                        text:   "Service.AbortStart() must be called from within DoStart()",
                        action: DebugAction.ThrowAndLog);
                m_Status = ControlStatus.AbortingStart;
            }
protected void AbortStart ( ) { var trace = new StackTrace ( 1 , false ) ; if ( ! trace . GetFrames ( ) . Any ( f => f . GetMethod ( ) . Name . Equals ( " " , StringComparison . Ordinal ) ) ) Debugging . Fail ( text : " " , action : DebugAction . ThrowAndLog ) ; m_Status = ControlStatus . AbortingStart ; }
Allows to abort unsuccessful DoStart() overridden implementation.
Allows to abort unsuccessful DoStart () overridden implementation .