Example #1
0
 public void Begin(BeginScopeContext context)
 {
     if (BeginEnabled == null || BeginEnabled(context))
     {
         Scopes.Add(context);
     }
 }
Example #2
0
 public static bool EnableWithTypeName <T>(BeginScopeContext context)
 {
     return(context.LoggerName.Equals(typeof(T).FullName));
 }