37 references to AzureServiceBusResource
Aspire.Hosting.Azure.ServiceBus (29)
AzureServiceBusEmulatorResource.cs (3)
9
/// Wraps an <see cref="
AzureServiceBusResource
" /> in a type that exposes container extension methods.
12
public class AzureServiceBusEmulatorResource(
AzureServiceBusResource
innerResource) : ContainerResource(innerResource.Name), IResource
17
private readonly
AzureServiceBusResource
_innerResource = innerResource;
AzureServiceBusExtensions.cs (26)
29
public static IResourceBuilder<
AzureServiceBusResource
> AddAzureServiceBus(this IDistributedApplicationBuilder builder, [ResourceName] string name)
61
var
azureResource = (
AzureServiceBusResource
)infrastructure.AspireResource;
92
var
resource = new AzureServiceBusResource(name, configureInfrastructure);
98
/// Adds an Azure Service Bus Queue resource to the application model. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
104
public static IResourceBuilder<
AzureServiceBusResource
> AddQueue(this IResourceBuilder<
AzureServiceBusResource
> builder, [ResourceName] string name)
110
/// Adds an Azure Service Bus Queue resource to the application model. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
116
public static IResourceBuilder<
AzureServiceBusResource
> WithQueue(this IResourceBuilder<
AzureServiceBusResource
> builder, [ResourceName] string name, Action<ServiceBusQueue>? configure = null)
131
/// Adds an Azure Service Bus Topic resource to the application model. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
136
public static IResourceBuilder<
AzureServiceBusResource
> AddTopic(this IResourceBuilder<
AzureServiceBusResource
> builder, [ResourceName] string name)
142
/// Adds an Azure Service Bus Topic resource to the application model. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
148
public static IResourceBuilder<
AzureServiceBusResource
> AddTopic(this IResourceBuilder<
AzureServiceBusResource
> builder, [ResourceName] string name, string[] subscriptions)
163
/// Adds an Azure Service Bus Topic resource to the application model. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
169
public static IResourceBuilder<
AzureServiceBusResource
> WithTopic(this IResourceBuilder<
AzureServiceBusResource
> builder, [ResourceName] string name, Action<ServiceBusTopic>? configure = null)
184
/// Adds an Azure Service Bus Subscription resource to the application model. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
191
public static IResourceBuilder<
AzureServiceBusResource
> AddSubscription(this IResourceBuilder<
AzureServiceBusResource
> builder, string topicName, string subscriptionName)
205
/// Configures an Azure Service Bus resource to be emulated. This resource requires an <see cref="
AzureServiceBusResource
"/> to be added to the application model.
229
public static IResourceBuilder<
AzureServiceBusResource
> RunAsEmulator(this IResourceBuilder<
AzureServiceBusResource
> builder, Action<IResourceBuilder<AzureServiceBusEmulatorResource>>? configureContainer = null)
283
var serviceBusEmulatorResources = builder.ApplicationBuilder.Resources.OfType<
AzureServiceBusResource
>().Where(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
Aspire.Hosting.Azure.Tests (8)
AzureServiceBusExtensionsTests.cs (8)
470
var
serviceBusEmulatorResource = builder.Resources.OfType<
AzureServiceBusResource
>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
565
var
serviceBusEmulatorResource = builder.Resources.OfType<
AzureServiceBusResource
>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
612
var
serviceBusEmulatorResource = builder.Resources.OfType<
AzureServiceBusResource
>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
664
var
serviceBusEmulatorResource = builder.Resources.OfType<
AzureServiceBusResource
>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);