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