コード例 #1
0
 static NavigationFilterProcessor()
 {
     _root           = RootNamespaceNavigation.GetInstance();
     _cache          = new NamespaceNavigatorCache(new NamespaceNavigationParser());
     _optionsesCache = new Dictionary <int, OutputOptions>();
     _valueIndexedByRuleNameCache = new Dictionary <int, EndValueNamespaceNavigationNode>();
 }
コード例 #2
0
 public LoggingConfiguration(ILoggingOptions settings, IConfigurationRoot loggingConfiguration)
 {
     _loggingSettings         = settings ?? throw new ArgumentNullException(nameof(settings));
     _loggingConfiguration    = loggingConfiguration ?? throw new ArgumentNullException(nameof(loggingConfiguration));
     _namespaceNavigatorCache = new NamespaceNavigatorCache(new NamespaceNavigationParser());
     SetSelf(loggingConfiguration.GetSection("Logging").Get <LoggingConfiguration>());
 }
コード例 #3
0
 protected SinkConfiguration(string name)
 {
     if (string.IsNullOrWhiteSpace(name))
     {
         throw new ArgumentNullException(nameof(name));
     }
     _namespaceNavigatorCache = new NamespaceNavigatorCache(new NamespaceNavigationParser());
     Name = name;
 }