AzureSignalRExtensions
Class static net10.0
Provides extension methods for adding the Azure SignalR resources to the application model.
namespace Aspire.Hosting;
public static class AzureSignalRExtensions{ // ...}Methods4
Section titled MethodsAddAzureSignalR(IDistributedApplicationBuilder, string)extensionIResourceBuilder<AzureSignalRResource> Adds an Azure SignalR resource to the application model.
AddAzureSignalR(IDistributedApplicationBuilder, string, AzureSignalRServiceMode)extensionIResourceBuilder<AzureSignalRResource> Adds an Azure SignalR resource to the application model.
RunAsEmulator(IResourceBuilder<AzureSignalRResource>, Action<IResourceBuilder<AzureSignalREmulatorResource>>)extensionIResourceBuilder<AzureSignalRResource> Configures an Azure SignalR resource to be emulated. This resource requires an
AzureSignalRResource to be added to the application model. Please note that the resource will be emulated in Serverless mode. WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<AzureSignalRResource>, SignalRBuiltInRole[])extensionIResourceBuilder<T> Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure SignalR resource. This replaces the default role assignments for the resource.