1.启动

  1. //启动自定义API
  2. var mvcBuilders = services.AddMvc();
  3. services.AddControllerSetup(mvcBuilders);
  4. Panda.Framework.Helper.ConsoleHelper.WriteSuccessLine("start server ...");
  5. //启动自定义Socket
  6. Panda.Server.SocketInstallSetup.InstallService(Configuration);
  7. Panda.Framework.Helper.ConsoleHelper.WriteSuccessLine("UseSystemMildd ...");
  8. // 系统参数初始化
  9. app.UseSystemMildd(taskIrrigate, taskSensor,cloudService,startupHelper,taskCloudUpdata);