Outputs the current status of a group of queues
Ejemplo n.º 1
0
        /// <summary>
        /// Writes the status.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <returns></returns>
        private Task WriteStatusAsync(HttpListenerContext context)
        {
            var status = new QueueStatus(_queueStatusProviders.ToList());

            return(WriteStringAsync(context, _serializer.ConvertToString(status), "application/json"));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Writes the status.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 private Task WriteStatus(HttpListenerContext context)
 {
     var status = new QueueStatus(_queueStatusProviders.ToList());
     return WriteString(context, _serializer.ConvertToString(status), "application/json");
 }