3 instantiations of RabbitMQServerResource
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
41var rabbitMq = new RabbitMQServerResource(name, userName?.Resource, passwordParameter);
Aspire.Hosting.RabbitMQ.Tests (2)
RabbitMQPublicApiTests.cs (2)
101var action = () => new RabbitMQServerResource(name: name, userName: null, password: password); 114var action = () => new RabbitMQServerResource(name: name, userName: null, password: password);
28 references to RabbitMQServerResource
Aspire.Hosting.RabbitMQ (18)
RabbitMQBuilderExtensions.cs (17)
29public static IResourceBuilder<RabbitMQServerResource> AddRabbitMQ(this IDistributedApplicationBuilder builder, 41var rabbitMq = new RabbitMQServerResource(name, userName?.Resource, passwordParameter); 77.WithEndpoint(port: port, targetPort: 5672, name: RabbitMQServerResource.PrimaryEndpointName) 95public static IResourceBuilder<RabbitMQServerResource> WithDataVolume(this IResourceBuilder<RabbitMQServerResource> builder, string? name = null, bool isReadOnly = false) 110public static IResourceBuilder<RabbitMQServerResource> WithDataBindMount(this IResourceBuilder<RabbitMQServerResource> builder, string source, bool isReadOnly = false) 129/// <exception cref="DistributedApplicationException">Thrown when the current container image and tag do not match the defaults for <see cref="RabbitMQServerResource"/>.</exception> 130public static IResourceBuilder<RabbitMQServerResource> WithManagementPlugin(this IResourceBuilder<RabbitMQServerResource> builder) 137/// <inheritdoc cref="WithManagementPlugin(IResourceBuilder{RabbitMQServerResource})" /> 141/// Use <see cref="WithManagementPlugin(IResourceBuilder{RabbitMQServerResource}, int?)"/> to specify a port to access the RabbitMQ management UI page. 148public static IResourceBuilder<RabbitMQServerResource> WithManagementPlugin(this IResourceBuilder<RabbitMQServerResource> builder, int? port) 198builder.WithHttpEndpoint(port: port, targetPort: 15672, name: RabbitMQServerResource.ManagementEndpointName); 249private static IResourceBuilder<RabbitMQServerResource> RunWithStableNodeName(this IResourceBuilder<RabbitMQServerResource> builder)
RabbitMQServerResource.cs (1)
16/// Initializes a new instance of the <see cref="RabbitMQServerResource"/> class.
Aspire.Hosting.RabbitMQ.Tests (10)
AddRabbitMQTests.cs (6)
53var containerResource = Assert.Single(appModel.Resources.OfType<RabbitMQServerResource>()); 105var rabbitMqResource = Assert.Single(appModel.Resources.OfType<RabbitMQServerResource>()); 139var containerResource = Assert.Single(appModel.Resources.OfType<RabbitMQServerResource>());
RabbitMQPublicApiTests.cs (4)
39IResourceBuilder<RabbitMQServerResource> builder = null!; 50IResourceBuilder<RabbitMQServerResource> builder = null!; 75IResourceBuilder<RabbitMQServerResource> builder = null!; 86IResourceBuilder<RabbitMQServerResource> builder = null!;