Program.cs 917 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Sers.Core.Module.Api.LocalApi;
  2. using Sers.Core.Module.App;
  3. using Sers.ServiceStation;
  4. namespace Main
  5. {
  6. public class Program
  7. {
  8. public static void Main(string[] args)
  9. {
  10. ServiceStation.AutoRun();
  11. ////手动指定Station版本号
  12. ////Sers.Core.Module.App.SersApplication.serviceStationInfo.stationVersion = "2.0.1";
  13. ////(x.1) Init
  14. //ServiceStation.Init();
  15. ////(x.2) Discovery
  16. ////ServiceStation.Discovery(new DiscoveryConfig { assembly= typeof(Program).Assembly,routePrefix_Force="v3",apiStationName_Force= "StationDemo" });
  17. ////ServiceStation.Discovery(typeof(Program).Assembly);
  18. //ServiceStation.Discovery();
  19. ////(x.3) Start
  20. //ServiceStation.Start();
  21. ////(x.4) RunAwait
  22. //ServiceStation.RunAwait();
  23. }
  24. }
  25. }