Esempio n. 1
0
 public MainMod(ConfigManager mgr)
 {
     Get["/config"] = x =>
     {
         return View["views/config.html", mgr.config];
     };
 }
Esempio n. 2
0
 protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
 {
     base.ApplicationStartup(container, pipelines);
     ConfigManager mgr;
     mgr = new ConfigManager();
     mgr.LoadConfig();
     container.Register(mgr);
 }