Repository navigation
Admin
blehnen edited this page Nov 10, 2026
·
6 revisions
Note: The admin module still works, but the Dashboard API replaces it for most use cases. The Dashboard API has a REST interface and an optional web UI.
You can create the basic admin module from the queue container. It gives access to methods that interact with the data in the queue itself.
using (var admin = queueContainer.CreateAdminApi())
{
// Register one or more queue connections; each returns a Guid identifier
var id = admin.AddQueueConnection(queueContainer, queueConnection);
// Count messages — pass null for all statuses, or filter by QueueStatusAdmin
var total = admin.Count(id, null); // all messages
var waiting = admin.Count(id, QueueStatusAdmin.Waiting); // waiting only
var processing = admin.Count(id, QueueStatusAdmin.Processing); // processing only
}QueueStatusAdmin has two values: Waiting (queued, not yet picked up) and Processing (currently being handled by a consumer). Passing null returns the total across all states.
For any issues please use the GitHub issues