예제 #1
0
파일: TestSink.cs 프로젝트: gmmateev/Mvc
 public void Write(WriteCoreContext context)
 {
     if (WriteEnabled == null || WriteEnabled(context))
     {
         Writes.Add(context);
     }
 }
예제 #2
0
파일: TestSink.cs 프로젝트: gmmateev/Mvc
 public static bool EnableWithTypeName <T>(WriteCoreContext context)
 {
     return(context.LoggerName.Equals(typeof(T).FullName));
 }