Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }