1 implementation of IHealthChecksBuilder
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilder.cs (1)
10internal sealed class HealthChecksBuilder : IHealthChecksBuilder
117 references to IHealthChecksBuilder
Aspire.Azure.AI.OpenAI (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Data.Tables (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Search.Documents (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Security.KeyVault (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Storage.Queues (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Confluent.Kafka (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Elastic.Clients.Elasticsearch (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Hosting.Azure.Tests (2)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
145var cosmos1 = builder1.AddAzureCosmosDB("cosmos"); 200var cosmos2 = builder2.AddAzureCosmosDB("cosmos");
Aspire.Microsoft.Data.SqlClient (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Milvus.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.MongoDB.Driver (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.MySqlConnector (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.NATS.Net (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Npgsql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.RabbitMQ.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Seq (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.StackExchange.Redis (1)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
HealthChecksSample (2)
GCInfoHealthCheck.cs (2)
17public static IHealthChecksBuilder AddGCInfoCheck( 18this IHealthChecksBuilder builder,
Microsoft.Extensions.Diagnostics.HealthChecks (73)
DependencyInjection\HealthChecksBuilder.cs (1)
19public IHealthChecksBuilder Add(HealthCheckRegistration registration)
DependencyInjection\HealthChecksBuilderAddCheckExtensions.cs (33)
13/// Provides basic extension methods for registering <see cref="IHealthCheck"/> instances in an <see cref="IHealthChecksBuilder"/>. 20/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 28/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 30public static IHealthChecksBuilder AddCheck( 31this IHealthChecksBuilder builder, 43/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 52/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 54public static IHealthChecksBuilder AddCheck( 55this IHealthChecksBuilder builder, 73/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 80/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 88public static IHealthChecksBuilder AddCheck<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>( 89this IHealthChecksBuilder builder, 101/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 109/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 116public static IHealthChecksBuilder AddCheck<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>( 117this IHealthChecksBuilder builder, 141/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 144/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 149public static IHealthChecksBuilder AddTypeActivatedCheck< 151this IHealthChecksBuilder builder, string name, params object[] args) where T : class, IHealthCheck 163/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 170/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 175public static IHealthChecksBuilder AddTypeActivatedCheck< 177this IHealthChecksBuilder builder, 192/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 200/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 205public static IHealthChecksBuilder AddTypeActivatedCheck< 207this IHealthChecksBuilder builder, 228/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 237/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 242public static IHealthChecksBuilder AddTypeActivatedCheck< 244this IHealthChecksBuilder builder,
DependencyInjection\HealthChecksBuilderDelegateExtensions.cs (33)
15/// Provides extension methods for registering delegates with the <see cref="IHealthChecksBuilder"/>. 22/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 26/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 28public static IHealthChecksBuilder AddCheck( 29this IHealthChecksBuilder builder, 40/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 45/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 47public static IHealthChecksBuilder AddCheck( 48this IHealthChecksBuilder builder, 65/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 69/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 71public static IHealthChecksBuilder AddCheck( 72this IHealthChecksBuilder builder, 83/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 88/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 90public static IHealthChecksBuilder AddCheck( 91this IHealthChecksBuilder builder, 108/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 112/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 114public static IHealthChecksBuilder AddAsyncCheck( 115this IHealthChecksBuilder builder, 126/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 131/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 133public static IHealthChecksBuilder AddAsyncCheck( 134this IHealthChecksBuilder builder, 151/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 155/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 157public static IHealthChecksBuilder AddAsyncCheck( 158this IHealthChecksBuilder builder, 169/// <param name="builder">The <see cref="IHealthChecksBuilder"/>.</param> 174/// <returns>The <see cref="IHealthChecksBuilder"/>.</returns> 176public static IHealthChecksBuilder AddAsyncCheck( 177this IHealthChecksBuilder builder,
DependencyInjection\HealthCheckServiceCollectionExtensions.cs (3)
22/// multiple times in order to get access to the <see cref="IHealthChecksBuilder"/> in multiple places. 25/// <returns>An instance of <see cref="IHealthChecksBuilder"/> from which health checks can be registered.</returns> 26public static IHealthChecksBuilder AddHealthChecks(this IServiceCollection services)
DependencyInjection\IHealthChecksBuilder.cs (1)
17IHealthChecksBuilder Add(HealthCheckRegistration registration);
HealthCheckService.cs (2)
23/// The <see cref="IHealthChecksBuilder"/> returned by 29/// <see cref="IHealthChecksBuilder"/>.
Microsoft.Extensions.Diagnostics.HealthChecks.Common (10)
CommonHealthChecksExtensions.ApplicationLifecycle.cs (4)
23public static IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this IHealthChecksBuilder builder, params string[] tags) 34public static IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this IHealthChecksBuilder builder, IEnumerable<string> tags)
CommonHealthChecksExtensions.Manual.cs (6)
21public static IHealthChecksBuilder AddManualHealthCheck(this IHealthChecksBuilder builder, params string[] tags) 33public static IHealthChecksBuilder AddManualHealthCheck(this IHealthChecksBuilder builder, IEnumerable<string> tags) 55private static IHealthChecksBuilder AddManualHealthCheckDependencies(this IHealthChecksBuilder builder)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
ApplicationLifecycleHealthChecksExtensionsTests.cs (2)
49Assert.Throws<ArgumentNullException>(() => ((IHealthChecksBuilder)null!).AddApplicationLifecycleHealthCheck()); 50Assert.Throws<ArgumentNullException>(() => ((IHealthChecksBuilder)null!).AddApplicationLifecycleHealthCheck(null!));
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
DefaultHealthCheckServiceTest.cs (2)
626private static DefaultHealthCheckService CreateHealthChecksService(Action<IHealthChecksBuilder> configure) 632var builder = services.AddHealthChecks();
HealthCheckPublisherHostedServiceTest.cs (2)
739Action<IHealthChecksBuilder>? configureBuilder = null, 746IHealthChecksBuilder builder = serviceCollection.AddHealthChecks();