コード例 #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));
 }