示例#1
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     ZeroApplication.CheckOption();
     RouteOption.ConfigFileName = Path.Combine(ZeroApplication.Config.ConfigFolder, "route_config.json");
     RouteOption.CheckOption();
 }
示例#2
0
 /// <summary>
 ///     初始化
 /// </summary>
 public static void Initialize()
 {
     ZeroApplication.Initialize();
     RouteOption.CheckOption();
     RouteChahe.InitCache();
     ZeroApplication.ZeroNetEvent += OnZeroNetEvent;
     ZeroApplication.Run();
 }