AzureWebPubSubExtensions.AddHub 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.
Overloads
AddHub(IResourceBuilder<AzureWebPubSubResource>, String) |
Add hub settings |
AddHub(IResourceBuilder<AzureWebPubSubResource>, String, String) |
Adds an Azure Web Pub Sub hub resource to the application model. |
AddHub(IResourceBuilder<AzureWebPubSubResource>, String)
- Source:
- AzureWebPubSubExtensions.cs
- Source:
- AzureWebPubSubExtensions.cs
- Source:
- AzureWebPubSubExtensions.cs
Add hub settings
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> AddHub(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> builder, string hubName);
static member AddHub : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource>
<Extension()>
Public Function AddHub (builder As IResourceBuilder(Of AzureWebPubSubResource), hubName As String) As IResourceBuilder(Of AzureWebPubSubHubResource)
Parameters
- builder
- IResourceBuilder<AzureWebPubSubResource>
The builder for the distributed application.
- hubName
- String
The hub name. Hub name is case-insensitive.
Returns
Applies to
AddHub(IResourceBuilder<AzureWebPubSubResource>, String, String)
- Source:
- AzureWebPubSubExtensions.cs
Adds an Azure Web Pub Sub hub resource to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> AddHub(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> builder, string name, string? hubName = default);
static member AddHub : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource>
<Extension()>
Public Function AddHub (builder As IResourceBuilder(Of AzureWebPubSubResource), name As String, Optional hubName As String = Nothing) As IResourceBuilder(Of AzureWebPubSubHubResource)
Parameters
- builder
- IResourceBuilder<AzureWebPubSubResource>
The Azure WebPubSub resource builder.
- name
- String
The name of the Azure WebPubSub Hub resource.
- hubName
- String
The name of the Azure WebPubSub Hub. If not provided, this defaults to the same value as name
.
Returns
A reference to the IResourceBuilder<T>.