Пример #1
0
 private static void btnSimulateSunset_Click(object sender, EventArgs e)
 {
     ServiceWrapper.TriggerSunsetActions(DateTime.Now.AddMinutes(5));
 }
Пример #2
0
 protected override void OnStop()
 {
     Logger.Info("DahuaSunriseSunset " + Assembly.GetEntryAssembly().GetName().Version.ToString() + " Service OnStop");
     ServiceWrapper.Stop();
 }