/// <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); } }
public string ToString(Newtonsoft.Json.Formatting formatting) { EventStopArgs classData = this; return(JsonConvert.SerializeObject(classData, formatting)); }