public ProgramContext(string[] args) { var sections = ExtList<ExtSection>.Empty; var dir = new DirectoryInfo(Application.StartupPath); foreach (var fi in dir.GetFiles("*.xml")) sections = sections.Merge(ReadConfig(fi)); app = new App(sections, args); var reader = app.CreateExtReader("services"); reader.Read(sections.First(s => s.Name == "services")); app.Initialize(app); app.Run(); }
public ProgramContext(string[] args) { var sections = ExtList <ExtSection> .Empty; var dir = new DirectoryInfo(Application.StartupPath); foreach (var fi in dir.GetFiles("*.xml")) { sections = sections.Merge(ReadConfig(fi)); } app = new App(sections, args); var reader = app.CreateExtReader("services"); reader.Read(sections.First(s => s.Name == "services")); app.Initialize(app); app.Run(); }