AzureServiceBusExtensions.WithHostPort Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the host port for the Azure Service Bus emulator is exposed on instead of using randomly assigned port.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusEmulatorResource> WithHostPort(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusEmulatorResource> builder, int? port);
static member WithHostPort : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusEmulatorResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusEmulatorResource>
<Extension()>
Public Function WithHostPort (builder As IResourceBuilder(Of AzureServiceBusEmulatorResource), port As Nullable(Of Integer)) As IResourceBuilder(Of AzureServiceBusEmulatorResource)
Parameters
Builder for the Azure Service Bus emulator container
Returns
A reference to the IResourceBuilder<T>.