예제 #1
0
        private static void start()
        {
            try
            {
                s_Instance.Start();
            }
            catch (Exception error)
            {
                s_Instance = null;

                log(MessageType.CatastrophicError,
                    "Instance.get(){svc.start()}",
                    error.ToMessageWithType(), error);
            }
        }
예제 #2
0
 private static void start()
 {
     try
     {
         s_Instance.Start();
     }
     catch (Exception error)
     {
         s_Instance = null;
         var msg = new Message
         {
             Type      = MessageType.CatastrophicError,
             Topic     = StringConsts.WEB_LOG_TOPIC,
             From      = typeof(GeoLookupService).FullName + ".Instance.get(){svc.start()}",
             Text      = error.ToMessageWithType(),
             Exception = error
         };
         App.Log.Write(msg);
     }
 }
예제 #3
0
      private static void start()
      {
        try 
        {
          s_Instance.Start();
        }
        catch(Exception error)
        {
          s_Instance = null;

          log(MessageType.CatastrophicError,
              "Instance.get(){svc.start()}",
              error.ToMessageWithType(), error); 
        }
      }
예제 #4
0
파일: WaveServerForm.cs 프로젝트: yhhno/nfx
        private void button4_Click(object sender, EventArgs e)
        {
            if (m_GeoService==null)
              {
            var svc = new GeoLookupService();
            svc.DataPath = @"d:\geodata";
            svc.Resolution = LookupResolution.City;
            svc.Start();
            m_GeoService = svc;
              }

              var result = m_GeoService.Lookup( IPAddress.Parse( tbIP.Text));
              if (result!=null)
              {
            MessageBox.Show( result.ToString() );
              }
        }
예제 #5
0
파일: GeoLookupTest.cs 프로젝트: yhhno/nfx
        public void SetUp()
        {
            var config = LACONF.AsLaconicConfig(handling: ConvertErrorHandling.Throw);
              m_App = new ServiceBaseApplication(null, config);

              var service = new GeoLookupService();
              service.Configure(config["geo-lookup"]);
              service.Start();
              Service = service;
        }
예제 #6
0
 private static void start()
 {
   try 
   {
     s_Instance.Start();
   }
   catch(Exception error)
   {
     s_Instance = null;
     var msg = new Message
     {
       Type = MessageType.CatastrophicError,
       Topic = StringConsts.WEB_LOG_TOPIC,
       From = typeof(GeoLookupService).FullName+".Instance.get(){svc.start()}",
       Text = error.ToMessageWithType(),
       Exception = error
     };
     App.Log.Write( msg ); 
   }
 }