示例#1
0
 protected override void OnStart(string[] args)
 {
     WriteEventEntry("Starting Mercury!", EventLogEntryType.Information, 0, 0);
     _systemServer         = new Mercury.Mercury(2500);
     _systemServer.Output += MercuryLoggingRoutine;
     _systemServer.Error  += MercuryErrorRoutine;
     _systemServer.Start();
     // base.OnStart(args);
     WriteEventEntry("Done Starting!", EventLogEntryType.Information, 0, 0);
 }
示例#2
0
 public Entry()
 {
     InitializeComponent();
     // ServiceName = "Mercury Trade Server";
     _systemServer = new Mercury.Mercury(2500);
 }