private void HandleBgApi(IPipelineHandlerContext context, Message response, BgApiCmd curMsg)
        {
            if (response.Headers["Reply-Text"][0] != '+')
            {
                context.SendUpstream(new CommandReply(curMsg.Inner, false, response.Headers["Reply-Text"]));
                return;
            }

            curMsg.Id = response.Headers["Job-UUID"];
            _pending.AddLast(curMsg);
        }
        private void HandleBgApi(IPipelineHandlerContext context, Message response, BgApiCmd curMsg)
        {
            if (response.Headers["Reply-Text"][0] != '+')
            {
                context.SendUpstream(new CommandReply(curMsg.Inner, false, response.Headers["Reply-Text"]));
                return;
            }

            curMsg.Id = response.Headers["Job-UUID"];
            _pending.AddLast(curMsg);
        }