Source/NFX/Log/LogServiceBase.cs
/// <summary>
/// Adds a destination to this service active destinations. Negative index to append
/// </summary>
Adds a destination to this service active destinations. Negative index to append
Adds a destination to this service active destinations . Negative index to append
public void RegisterDestination(Destination dest, int atIdx = -1)
            {
                if (dest == null) return;
                lock (m_Destinations)
                {
                    if (m_Destinations.Count==0 || atIdx<0 || atIdx > m_Destinations.Count)
                     m_Destinations.Add(dest);
                    else
                     m_Destinations.Insert(atIdx, dest);
                    dest.__setLogSvc(this);
                }
            }
public void RegisterDestination ( Destination dest , int atIdx = - 1 ) { if ( dest == null ) return ; lock ( m_Destinations ) { if ( m_Destinations . Count == 0 || atIdx < 0 || atIdx > m_Destinations . Count ) m_Destinations . Add ( dest ) ; else m_Destinations . Insert ( atIdx , dest ) ; dest . __setLogSvc ( this ) ; } }
Adds a destination to this service active destinations.
Adds a destination to this service active destinations .
dest
Destination
atIdx
int