Source/NFX/ApplicationModel/CommonApplicationLogic.cs
/// <summary>
/// Registers an instance of IApplicationFinishNotifiable with application container to receive a call when
///  underlying application instance will finish its lifecycle
/// </summary>
/// <returns>True if notifiable instance was not found and was added</returns>
Registers an instance of IApplicationFinishNotifiable with application container to receive a call when
underlying application instance will finish its lifecycle
Registers an instance of IApplicationFinishNotifiable with application container to receive a call when underlying application instance will finish its lifecycle
public bool RegisterAppFinishNotifiable(IApplicationFinishNotifiable notifiable)
            {
                if (m_ShutdownStarted || notifiable==null) return false;
                lock(m_FinishNotifiables)
                  if (!m_FinishNotifiables.Contains(notifiable, ReferenceEqualityComparer<IApplicationFinishNotifiable>.Instance))
                  {
                     m_FinishNotifiables.Add(notifiable);
                     return true;
                  }
                return false;
            }
public bool RegisterAppFinishNotifiable ( IApplicationFinishNotifiable notifiable ) { if ( m_ShutdownStarted || notifiable == null ) return false ; lock ( m_FinishNotifiables ) if ( ! m_FinishNotifiables . Contains ( notifiable , ReferenceEqualityComparer < IApplicationFinishNotifiable > . Instance ) ) { m_FinishNotifiables . Add ( notifiable ) ; return true ; } return false ; }
Registers an instance of IApplicationFinishNotifiable with application container to receive a call when
underlying application instance will finish its lifecycle
Registers an instance of IApplicationFinishNotifiable with application container to receive a call when underlying application instance will finish its lifecycle
True if notifiable instance was not found and was added
True if notifiable instance was not found and was added
notifiable
IApplicationFinishNotifiable