Source/NFX/Log/LogBatcher.cs
/// <summary>
/// Add item to the logger batch
/// </summary>
Add item to the logger batch
Add item to the logger batch
public void Add(TItem item)
    {
      if (item==null) return;
      var t = item.GetType();
      lock (m_Data)
      {
        ItemBatch batch;
        if (!m_Data.TryGetValue(t, out batch))
        {
          batch = MakeBatch(item);
          m_Data.Add(t, batch);
          return;
        }
        batch.Add(item);
      }
    }
public void Add ( TItem item ) { if ( item == null ) return ; var t = item . GetType ( ) ; lock ( m_Data ) { ItemBatch batch ; if ( ! m_Data . TryGetValue ( t , out batch ) ) { batch = MakeBatch ( item ) ; m_Data . Add ( t , batch ) ; return ; } batch . Add ( item ) ; } }
Add item to the logger batch
Add item to the logger batch
item
TItem