Ejemplo n.º 1
0
        public void ServiceStop()
        {
            lock (this)
            {
                EventStop?.Invoke();

                EventStart    = null;
                EventStop     = null;
                EventShutDown = null;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 插件停止时,运行一次这里
 /// </summary>
 /// <param name="json"></param>
 /// <returns></returns>
 private Boolean Do_EventStop(string json)
 {
     try
     {
         EventStopArgs eventStopArgs = JsonConvert.DeserializeObject <EventStopArgs>(json);
         EventStop?.Invoke(this, eventStopArgs);
         return(true);
     }
     catch (Exception ex)
     {
         DebugMessage(ex.Message);
         DebugMessage(ex.StackTrace);
         return(false);
     }
 }
Ejemplo n.º 3
0
 public void Stop()
 {
     isActiv = false;
     _time.Stop();
     EventStop?.Invoke();
 }