internal void Dispatch( GrandOutputEventInfo e )
{
if( CommonSink != null )
{
try
{
CommonSink.Handle( e, false );
}
catch( Exception ex )
{
ActivityMonitor.CriticalErrorCollector.Add( ex, "While logging event into Global sinks." );
}
}
try
{
foreach( var h in Handlers ) h.Handle( e, false );
}
catch( Exception ex )
{
ActivityMonitor.CriticalErrorCollector.Add( ex, "While logging event." );
}
finally
{
if( ConfigLock != null ) ConfigLock.Unlock();
}
}
}