AzureSignalRExtensions.AddAzureSignalR Method

Definition

Overloads

AddAzureSignalR(IDistributedApplicationBuilder, String)

Adds an Azure SignalR resource to the application model.

AddAzureSignalR(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureSignalRResource>,ResourceModuleConstruct,SignalRService>)

Adds an Azure SignalR resource to the application model.

AddAzureSignalR(IDistributedApplicationBuilder, String)

Source:
AzureSignalRExtensions.cs
Source:
AzureSignalRExtensions.cs

Adds an Azure SignalR resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureSignalRResource> AddAzureSignalR (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureSignalR : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureSignalRResource>
<Extension()>
Public Function AddAzureSignalR (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureSignalRResource)

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

AddAzureSignalR(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureSignalRResource>,ResourceModuleConstruct,SignalRService>)

Source:
AzureSignalRExtensions.cs

Adds an Azure SignalR resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureSignalRResource> AddAzureSignalR (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureSignalRResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.SignalR.SignalRService>? configureResource);
static member AddAzureSignalR : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureSignalRResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.SignalR.SignalRService> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureSignalRResource>
<Extension()>
Public Function AddAzureSignalR (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureSignalRResource), ResourceModuleConstruct, SignalRService)) As IResourceBuilder(Of AzureSignalRResource)

Parameters

name
String

The name of the resource. This name will be used as the connection string name when referenced in a dependency.

configureResource
Action<IResourceBuilder<AzureSignalRResource>,ResourceModuleConstruct,SignalRService>

Callback to configure the underlying SignalRService resource.

Returns

A reference to the IResourceBuilder<T>.

Applies to