Пример #1
0
    /// <summary>
    /// Creates mapping service instance.
    /// </summary>
    private void CreateMapService()
    {
      if (Application[MAP_SERVICE_OBJECT_NAME] == null)
      {
        AspNetHostMapService mapService = new AspNetHostMapService();
        mapService.Load();
        mapService.Start();

        this.Application[MAP_SERVICE_OBJECT_NAME] = mapService;
      }
    }
Пример #2
0
        /// <summary>
        /// Creates mapping service instance.
        /// </summary>
        private void CreateMapService()
        {
            if (Application[MAP_SERVICE_OBJECT_NAME] == null)
            {
                AspNetHostMapService mapService = new AspNetHostMapService();
                mapService.Load();
                mapService.Start();

                this.Application[MAP_SERVICE_OBJECT_NAME] = mapService;
            }
        }
Пример #3
0
 /// <summary>
 /// Destroyes mapping sevice instance.
 /// </summary>
 private void DestroyMapService()
 {
     try
     {
         if (Application[MAP_SERVICE_OBJECT_NAME] != null)
         {
             AspNetHostMapService mapService = (AspNetHostMapService)Application[MAP_SERVICE_OBJECT_NAME];
             mapService.Dispose();
             Application[MAP_SERVICE_OBJECT_NAME] = null;
         }
     }
     catch
     { }
 }