12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using Sers.Gateway;
- using Sers.ServiceStation;
- using Vit.Core.Module.Log;
- namespace App.Gateway
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- try
- {
- #region init ServiceStation
- ServiceStation.Init();
- //ServiceStation.Discovery(typeof(Program).Assembly);
- if (!ServiceStation.Start())
- {
- Logger.Error("can not connect to ServiceCenter. Closing station now.");
- return;
- }
- #endregion
- GatewayHelp.Bridge();
- ServiceStation.RunAwait();
- }
- catch (Exception ex)
- {
- Logger.Error(ex);
- Console.WriteLine("Exception:" + ex.Message);
- }
- }
- }
- }
|