Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }