Пример #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);
        }
Пример #2
0
        private HttpStatusCode AddToQueue(string environment, HttpListenerContext context)
        {
            var item = _queue.Enqueue(environment);

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