CNAS取数仪器端升级
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

35 linhas
662B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Diagnostics;
  6. using System.Linq;
  7. using System.ServiceProcess;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace CNAS_SyncService
  11. {
  12. public partial class SyncSerivice : ServiceBase
  13. {
  14. public SyncSerivice()
  15. {
  16. InitializeComponent();
  17. }
  18. protected override void OnStart(string[] args)
  19. {
  20. Task.Run(() =>
  21. {
  22. new SyncServiceOperation().Start();
  23. });
  24. }
  25. protected override void OnStop()
  26. {
  27. }
  28. }
  29. }