static NavigationFilterProcessor() { _root = RootNamespaceNavigation.GetInstance(); _cache = new NamespaceNavigatorCache(new NamespaceNavigationParser()); _optionsesCache = new Dictionary <int, OutputOptions>(); _valueIndexedByRuleNameCache = new Dictionary <int, EndValueNamespaceNavigationNode>(); }
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>()); }
protected SinkConfiguration(string name) { if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentNullException(nameof(name)); } _namespaceNavigatorCache = new NamespaceNavigatorCache(new NamespaceNavigationParser()); Name = name; }