/// <summary> /// It is a function which is used for thread pool. /// </summary> /// <param name="idleParam"> /// a command, no use, set it to null /// </param> public override void Request(object idleParam) { string jsonStr = JsonPack <UploadFile> .SerializeObject(this); AgentSetting.CallerFactory.CreateCaller() .PostCommand(AgentSetting.AddressUrl + AgentSetting.CommandConfigUpload, jsonStr); }
/// <summary> /// It is a function which is used for thread pool. /// </summary> /// <param name="idleParam"> /// a command, no use, set it to null /// </param> public override void Request(object idleParam) { string jsonStr = JsonPack <UpdateStatus> .SerializeObject(this); string result = AgentSetting.CallerFactory.CreateCaller() .PostCommand(AgentSetting.AddressUrl + AgentSetting.CommandLogStatusUpdate, jsonStr); }