AspireWebPubSubExtensions
Class static net10.0
Provides extension methods for registering
WebPubSub.WebPubSubServiceClient as a singleton in the services provided by the Hosting.IHostApplicationBuilder. namespace Microsoft.Extensions.Hosting;
public static class AspireWebPubSubExtensions{ // ...}Methods3
Section titled MethodsAddAzureWebPubSubServiceClient(IHostApplicationBuilder, string, Action<AzureMessagingWebPubSubSettings>, Action<IAzureClientBuilder<WebPubSubServiceClient, WebPubSubServiceClientOptions>>)extension Registers
WebPubSub.WebPubSubServiceClient as a singleton in the services provided by the builder. AddKeyedAzureWebPubSubServiceClient(IHostApplicationBuilder, string, string, Action<AzureMessagingWebPubSubSettings>, Action<IAzureClientBuilder<WebPubSubServiceClient, WebPubSubServiceClientOptions>>)extension Registers
WebPubSub.WebPubSubServiceClient as a singleton for given connectionName and serviceKey in the services provided by the builder. AddKeyedAzureWebPubSubServiceClient(IHostApplicationBuilder, string, Action<AzureMessagingWebPubSubSettings>, Action<IAzureClientBuilder<WebPubSubServiceClient, WebPubSubServiceClientOptions>>)extension Registers
WebPubSub.WebPubSubServiceClient as a singleton for given connectionName in the services provided by the builder. This overload does not require a service key and uses the connection name as the service key to support scenarios where multiple Hubs are referenced in the same application.