private void InitConfig() { var readers = "Cache,Environment,Database"; var readerList = readers.Split(',').Reverse(); foreach (var reader in readerList) { switch (reader) { case "Cache": configReader = new ConfigReader.CacheReader(configReader); continue; case "Environment": configReader = new ConfigReader.EnvironmentReader(configReader); continue; case "Database": configReader = new ConfigReader.DatabaseReader(configReader); continue; } } }
public EnvironmentReader(ConfigReader reader) : base(reader) { }
public CacheReader(ConfigReader reader) : base(reader) { }
public ReaderDecorator(ConfigReader reader) { this.reader = reader; }
public DatabaseReader(ConfigReader reader) : base(reader) { }