26 references to AzureMessagingWebPubSubSettings
Aspire.Azure.Messaging.WebPubSub (18)
AspireWebPubSubExtensions.cs (17)
29/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureMessagingWebPubSubSettings"/>. It's invoked after the settings are read from the configuration.</param> 32/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingWebPubSubSettings.ConnectionString"/> nor <see cref="AzureMessagingWebPubSubSettings.Endpoint"/> is provided.</exception> 36Action<AzureMessagingWebPubSubSettings>? configureSettings = null, 48/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureMessagingWebPubSubSettings"/>. It's invoked after the settings are read from the configuration.</param> 51/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingWebPubSubSettings.ConnectionString"/> nor <see cref="AzureMessagingWebPubSubSettings.Endpoint"/> is provided.</exception> 56Action<AzureMessagingWebPubSubSettings>? configureSettings = null, 62var configureWithServiceKeyAsDefaultHubName = (AzureMessagingWebPubSubSettings settings) => 73private sealed class WebPubSubComponent : AzureComponent<AzureMessagingWebPubSubSettings, WebPubSubServiceClient, WebPubSubServiceClientOptions> 76(AzureClientFactoryBuilder azureFactoryBuilder, AzureMessagingWebPubSubSettings settings, string connectionName, string configurationSectionName) 101protected override IHealthCheck CreateHealthCheck(WebPubSubServiceClient client, AzureMessagingWebPubSubSettings settings) 111protected override void BindSettingsToConfiguration(AzureMessagingWebPubSubSettings settings, IConfiguration config) 116protected override TokenCredential? GetTokenCredential(AzureMessagingWebPubSubSettings settings) 119protected override bool GetMetricsEnabled(AzureMessagingWebPubSubSettings settings) 122protected override bool GetTracingEnabled(AzureMessagingWebPubSubSettings settings) 125protected override bool GetHealthCheckEnabled(AzureMessagingWebPubSubSettings settings)
AssemblyInfo.cs (1)
8[assembly: ConfigurationSchema("Aspire:Azure:Messaging:WebPubSub", typeof(AzureMessagingWebPubSubSettings))]
Aspire.Azure.Messaging.WebPubSub.Tests (8)
ConformanceTests.cs (8)
13public class ConformanceTests : ConformanceTests<WebPubSubServiceClient, AzureMessagingWebPubSubSettings> 61? new(CreateConfigKey("Aspire:Azure:Messaging:WebPubSub", key is not null ? $"{key}:{key}" : null, nameof(AzureMessagingWebPubSubSettings.Endpoint)), Endpoint) 62: new(CreateConfigKey("Aspire:Azure:Messaging:WebPubSub", key is not null ? $"{key}:{key}" : null, nameof(AzureMessagingWebPubSubSettings.ConnectionString)), ConnectionString); 70protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingWebPubSubSettings>? configure = null, string? key = null) 81void Configure(AzureMessagingWebPubSubSettings settings) 92protected override void SetHealthCheck(AzureMessagingWebPubSubSettings options, bool enabled) 95protected override void SetMetrics(AzureMessagingWebPubSubSettings options, bool enabled) 98protected override void SetTracing(AzureMessagingWebPubSubSettings options, bool enabled)