示例#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));
 }