Program.cs 549 B

123456789101112131415161718192021222324252627282930
  1. using Sers.ServiceStation;
  2. namespace Did.SersLoader.HelloWorld
  3. {
  4. public class Program
  5. {
  6. public static void Main(string[] args)
  7. {
  8. //ServiceStation.AutoRun();
  9. //(x.1) Init
  10. ServiceStation.Init();
  11. //(x.2)加载api
  12. ServiceStation.Instance.LoadSersApi(typeof(Program).Assembly);
  13. //(x.3) Start
  14. ServiceStation.Start();
  15. //(x.4) RunAwait
  16. ServiceStation.RunAwait();
  17. }
  18. }
  19. }