Ejemplo n.º 1
0
 public void Start(Framework.Interfaces.ICore core)
 {
     if (httpServer == null)
     {
         try
         {
             httpServer = new OSMTileHttpServer(PluginSettings.Instance.TileServerPort, core);
             Thread thread = new Thread(new ThreadStart(httpServer.listen));
             thread.IsBackground = true;
             thread.Start();
             Active = true;
         }
         catch
         {
             httpServer = null;
         }
     }
 }
Ejemplo n.º 2
0
 public void Start(Framework.Interfaces.ICore core)
 {
     if (httpServer == null)
     {
         try
         {
             httpServer = new OSMTileHttpServer(PluginSettings.Instance.TileServerPort, core);
             Thread thread = new Thread(new ThreadStart(httpServer.listen));
             thread.IsBackground = true;
             thread.Start();
             Active = true;
         }
         catch
         {
             httpServer = null;
         }
     }
 }