Example #1
0
 public IFilteringRule GetCompiledRule(ILogEnvironment environment)
 {
     if (_compiledRule == null)
     {
         _compiledRule = ComplieRule();
         _compiledRule.SetEnvironment(environment);
     }
     return(_compiledRule);
 }
 public IFormattingRule GetCompiledRule(ILogEnvironment environment)
 {
     if (_compiledRule == null)
     {
         try
         {
             _compiledRule = ComplieRule();
             _compiledRule.SetEnvironment(environment);
         }
         catch
         {
             _compiledRule = DummyRule.Instance;
         }
     }
     return(_compiledRule);
 }
Example #3
0
 public void SetEnvironment(ILogEnvironment environment)
 {
 }