DotSee.VirtualNodes by Sotiris Filippidis

<PackageReference Include="DotSee.VirtualNodes" Version="1.1.0" />

 VirtualNodesRuleManager

public sealed class VirtualNodesRuleManager
using System; using System.Collections.Generic; using System.Configuration; namespace DotSee.VirtualNodes { public sealed class VirtualNodesRuleManager { private static readonly Lazy<VirtualNodesRuleManager> _instance = new Lazy<VirtualNodesRuleManager>(() => new VirtualNodesRuleManager()); private List<string> _rules; public List<string> Rules => _rules; public static VirtualNodesRuleManager Instance => _instance.Value; private VirtualNodesRuleManager() { string name = "virtualnode"; _rules = new List<string>(); string text = ConfigurationManager.AppSettings.Get(name); if (!string.IsNullOrEmpty(text)) { string[] array = text.Split(new char[1] { ',' }); foreach (string text2 in array) { _rules.Add(text2.Trim()); } } } } }