Compartir a través de


HealthCheckRegistration Constructores

Definición

Sobrecargas

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>)

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>)

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

public:
 HealthCheckRegistration(System::String ^ name, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^ instance, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public HealthCheckRegistration (string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, instance As IHealthCheck, failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String))

Parámetros

name
String

El nombre de la comprobación de estado.

instance
IHealthCheck

Instancia de IHealthCheck.

failureStatus
Nullable<HealthStatus>

El objeto HealthStatus que se debe notificar cuando se produce un error en la comprobación de estado. Si el valor proporcionado es null, se notificará Unhealthy.

tags
IEnumerable<String>

Una lista de etiquetas que se pueden usar para filtrar las comprobaciones de estado.

Se aplica a

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

public:
 HealthCheckRegistration(System::String ^ name, Func<IServiceProvider ^, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^> ^ factory, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public HealthCheckRegistration (string name, Func<IServiceProvider,Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Func<IServiceProvider, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, factory As Func(Of IServiceProvider, IHealthCheck), failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String))

Parámetros

name
String

El nombre de la comprobación de estado.

factory
Func<IServiceProvider,IHealthCheck>

Un delegado que se usa para crear la instancia de IHealthCheck.

failureStatus
Nullable<HealthStatus>

El objeto HealthStatus que se debe notificar cuando la comprobación de estado informa de un error. Si el valor proporcionado es null, se notificará Unhealthy.

tags
IEnumerable<String>

Una lista de etiquetas que se pueden usar para filtrar las comprobaciones de estado.

Se aplica a

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

public:
 HealthCheckRegistration(System::String ^ name, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^ instance, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags, Nullable<TimeSpan> timeout);
public HealthCheckRegistration (string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags, TimeSpan? timeout);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> * Nullable<TimeSpan> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, instance As IHealthCheck, failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String), timeout As Nullable(Of TimeSpan))

Parámetros

name
String

El nombre de la comprobación de estado.

instance
IHealthCheck

Instancia de IHealthCheck.

failureStatus
Nullable<HealthStatus>

El objeto HealthStatus que se debe notificar cuando se produce un error en la comprobación de estado. Si el valor proporcionado es null, se notificará Unhealthy.

tags
IEnumerable<String>

Una lista de etiquetas que se pueden usar para filtrar las comprobaciones de estado.

timeout
Nullable<TimeSpan>

Un objeto TimeSpan opcional que representa el tiempo de expiración de la comprobación.

Se aplica a

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

Crea un objeto HealthCheckRegistration para una instancia de IHealthCheck existente.

public:
 HealthCheckRegistration(System::String ^ name, Func<IServiceProvider ^, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^> ^ factory, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags, Nullable<TimeSpan> timeout);
public HealthCheckRegistration (string name, Func<IServiceProvider,Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags, TimeSpan? timeout);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Func<IServiceProvider, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> * Nullable<TimeSpan> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, factory As Func(Of IServiceProvider, IHealthCheck), failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String), timeout As Nullable(Of TimeSpan))

Parámetros

name
String

El nombre de la comprobación de estado.

factory
Func<IServiceProvider,IHealthCheck>

Un delegado que se usa para crear la instancia de IHealthCheck.

failureStatus
Nullable<HealthStatus>

El objeto HealthStatus que se debe notificar cuando la comprobación de estado informa de un error. Si el valor proporcionado es null, se notificará Unhealthy.

tags
IEnumerable<String>

Una lista de etiquetas que se pueden usar para filtrar las comprobaciones de estado.

timeout
Nullable<TimeSpan>

Un objeto TimeSpan opcional que representa el tiempo de expiración de la comprobación.

Se aplica a