AspireWebPubSubExtensions
Classstaticnet10.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 Methods Registers
WebPubSub.WebPubSubServiceClient as a singleton in the services provided by the builder. Registers
WebPubSub.WebPubSubServiceClient as a singleton for given connectionName and serviceKey in the services provided by the builder. 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.