Example #1
0
 public void Startup(ConfigurationLoader loader)
 {
     m_MaptileService = loader.GetService <MaptileServiceInterface>(m_MaptileServiceName);
     m_HttpServer     = loader.HttpServer;
     m_HttpServer.StartsWithUriHandlers.Add("/map-", HandleMap);
     if (loader.TryGetHttpsServer(out m_HttpsServer))
     {
         m_HttpsServer.StartsWithUriHandlers.Add("/map-", HandleMap);
     }
 }
 public void Startup(ConfigurationLoader loader)
 {
     m_MaptileService = loader.GetService <MaptileServiceInterface>(m_MaptileServiceName);
 }
        public void Startup(ConfigurationLoader loader)
        {
            IConfig config = loader.Config.Configs[GetType().FullName];

            m_MaptileService = loader.GetService <MaptileServiceInterface>(config.GetString("MaptileService"));
        }