AzureWebPubSubExtensions.AddAzureWebPubSub 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
AddAzureWebPubSub(IDistributedApplicationBuilder, String) |
Adds an Azure Web PubSub resource to the application model. Change sku: WithParameter("sku", "Standard_S1") Change capacity: WithParameter("capacity", 2) |
AddAzureWebPubSub(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureWebPubSubResource>,ResourceModuleConstruct,WebPubSubService>) |
Adds an Azure Web PubSub resource to the application model. |
AddAzureWebPubSub(IDistributedApplicationBuilder, String)
- Source:
- AzureWebPubSubExtensions.cs
Adds an Azure Web PubSub resource to the application model. Change sku: WithParameter("sku", "Standard_S1") Change capacity: WithParameter("capacity", 2)
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> AddAzureWebPubSub (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureWebPubSub : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource>
<Extension()>
Public Function AddAzureWebPubSub (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureWebPubSubResource)
Parameters
- name
- String
The name of the resource. This name will be used as the connection string name when referenced in a dependency.
Returns
A reference to the IResourceBuilder<T>.
Applies to
AddAzureWebPubSub(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureWebPubSubResource>,ResourceModuleConstruct,WebPubSubService>)
- Source:
- AzureWebPubSubExtensions.cs
Adds an Azure Web PubSub resource to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> AddAzureWebPubSub (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.WebPubSub.WebPubSubService>? configureResource);
static member AddAzureWebPubSub : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.WebPubSub.WebPubSubService> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource>
<Extension()>
Public Function AddAzureWebPubSub (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureWebPubSubResource), ResourceModuleConstruct, WebPubSubService)) As IResourceBuilder(Of AzureWebPubSubResource)
Parameters
- builder
- IDistributedApplicationBuilder
The builder for the distributed application.
- name
- String
The name of the resource.
- configureResource
- Action<IResourceBuilder<AzureWebPubSubResource>,ResourceModuleConstruct,WebPubSubService>
Callback to configure the underlying WebPubSubService resource.