AzureServiceBusExtensions
Classstaticnet10.0
Provides extension methods for adding the Azure Service Bus resources to the application model.
namespace Aspire.Hosting;
public static class AzureServiceBusExtensions{ // ...}19 members
Methods19
Section titled MethodsIResourceBuilder<AzureServiceBusResource> Adds an Azure Service Bus Namespace resource to the application model. This resource can be used to create queue, topic, and subscription resources.
IResourceBuilder<AzureServiceBusResource> Adds an Azure Service Bus Queue resource to the application model.
IResourceBuilder<AzureServiceBusQueueResource> Adds an Azure Service Bus Queue resource to the application model.
AddServiceBusSubscription(IResourceBuilder<AzureServiceBusTopicResource>, string, string?) extensionats exportIResourceBuilder<AzureServiceBusSubscriptionResource> Adds an Azure Service Bus Subscription resource to the application model.
IResourceBuilder<AzureServiceBusTopicResource> Adds an Azure Service Bus Topic resource to the application model.
AddSubscription(IResourceBuilder<AzureServiceBusResource>, string, string) extensionobsoleteats ignoredIResourceBuilder<AzureServiceBusResource> Adds an Azure Service Bus Subscription resource to the application model.
IResourceBuilder<AzureServiceBusResource> Adds an Azure Service Bus Topic resource to the application model.
IResourceBuilder<AzureServiceBusResource> Adds an Azure Service Bus Topic resource to the application model.
RunAsEmulator(IResourceBuilder<AzureServiceBusResource>, Action<IResourceBuilder<AzureServiceBusEmulatorResource>>) extensionats exportIResourceBuilder<AzureServiceBusResource> Configures an Azure Service Bus resource to be emulated. This resource requires an
AzureServiceBusResource to be added to the application model. WithConfiguration(IResourceBuilder<AzureServiceBusEmulatorResource>, Action<JsonNode>) extensionats ignoredIResourceBuilder<AzureServiceBusEmulatorResource> Alters the JSON configuration document used by the emulator.
IResourceBuilder<AzureServiceBusEmulatorResource> Copies the configuration file into an Azure Service Bus emulator resource.
IResourceBuilder<AzureServiceBusEmulatorResource> Configures the host port for the Azure Service Bus emulator is exposed on instead of using randomly assigned port.
WithProperties(IResourceBuilder<AzureServiceBusQueueResource>, Action<AzureServiceBusQueueResource>) extensionats exportIResourceBuilder<AzureServiceBusQueueResource> Allows setting the properties of an Azure Service Bus Queue resource.
WithProperties(IResourceBuilder<AzureServiceBusTopicResource>, Action<AzureServiceBusTopicResource>) extensionats exportIResourceBuilder<AzureServiceBusTopicResource> Allows setting the properties of an Azure Service Bus Topic resource.
WithProperties(IResourceBuilder<AzureServiceBusSubscriptionResource>, Action<AzureServiceBusSubscriptionResource>) extensionats exportIResourceBuilder<AzureServiceBusSubscriptionResource> Allows setting the properties of an Azure Service Bus Subscription resource.
WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<AzureServiceBusResource>, ServiceBusBuiltInRole[]) extensionats ignoredIResourceBuilder<T> Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Service Bus namespace. This replaces the default role assignments for the resource.
IResourceBuilder<AzureServiceBusEmulatorResource> Configures the Azure Service Bus emulator to store its state in the SQL Server resource that is created for it.
WithSqlServer(IResourceBuilder<AzureServiceBusEmulatorResource>, Action<IResourceBuilder<SqlServerServerResource>>) extensionats ignoredIResourceBuilder<AzureServiceBusEmulatorResource> Customizes the SQL Server resource that backs the Azure Service Bus emulator, allowing the regular SQL Server integration APIs (such as data volumes, host ports or the password) to be used.
WithSqlServer(IResourceBuilder<AzureServiceBusEmulatorResource>, IResourceBuilder<SqlServerServerResource>) extensionats exportIResourceBuilder<AzureServiceBusEmulatorResource> Configures the Azure Service Bus emulator to use an existing SQL Server resource instead of creating one for it.