Class RabbitMqManagementOptions
Configuration options for the RabbitMQ Management HTTP API client.
public sealed class RabbitMqManagementOptions
- Inheritance
-
RabbitMqManagementOptions
- Inherited Members
- Extension Methods
Examples
services.AddRabbitMqManagement(options =>
{
options.BaseUrl = "http://localhost:15672";
options.Username = "guest";
options.Password = "guest";
});
Remarks
The RabbitMQ Management plugin exposes an HTTP API for monitoring and managing the broker. This options class configures connection credentials and endpoint for the IRabbitMqManagementClient.
Properties
BaseUrl
Gets or sets the base URL of the RabbitMQ Management API.
[Required]
public string BaseUrl { get; set; }
Property Value
- string
The base URL. Default is
http://localhost:15672.
Remarks
Typically http://localhost:15672 for local development
or the management endpoint URL of the RabbitMQ cluster.
Password
Gets or sets the password for management API authentication.
[Required]
public string Password { get; set; }
Property Value
- string
The password. Default is
guest.
RequestTimeout
Gets or sets the timeout for management API HTTP requests.
public TimeSpan RequestTimeout { get; set; }
Property Value
- TimeSpan
The request timeout. Default is 30 seconds.
Username
Gets or sets the username for management API authentication.
[Required]
public string Username { get; set; }
Property Value
- string
The username. Default is
guest.