Exemplo n.º 1
0
        private HttpStatusCode TagAsStarted(string environment, string id, HttpListenerContext context)
        {
            var item = _queue.Poke(environment, id);

            if (item != null)
            {
                return(ConDepReturnCodes.Created(context, item));
            }
            return(HttpStatusCode.NotFound);
        }
Exemplo n.º 2
0
        private HttpStatusCode AddToQueue(string environment, HttpListenerContext context)
        {
            var item = _queue.Enqueue(environment);

            return(ConDepReturnCodes.Created(context, item));
        }