EnrichmentServiceCollectionExtensions.AddStaticLogEnricher Metodo

Definizione

Overload

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

Registra un'istanza di arricchimento dei log statici.

AddStaticLogEnricher<T>(IServiceCollection)

Registra un tipo di arricchimento dei log statici.

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

Origine:
EnrichmentServiceCollectionExtensions.cs

Registra un'istanza di arricchimento dei log statici.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddStaticLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Diagnostics::Enrichment::IStaticLogEnricher ^ enricher);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStaticLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher enricher);
static member AddStaticLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddStaticLogEnricher (services As IServiceCollection, enricher As IStaticLogEnricher) As IServiceCollection

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere l'istanza di enricher.

enricher
IStaticLogEnricher

Istanza di enricher da aggiungere.

Restituisce

Valore di services.

Eccezioni

services o enricher è null.

Si applica a

AddStaticLogEnricher<T>(IServiceCollection)

Origine:
EnrichmentServiceCollectionExtensions.cs

Registra un tipo di arricchimento dei log statici.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::Enrichment::IStaticLogEnricher[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddStaticLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStaticLogEnricher<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : class, Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher;
static member AddStaticLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.Enrichment.IStaticLogEnricher)
<Extension()>
Public Function AddStaticLogEnricher(Of T As {Class, IStaticLogEnricher}) (services As IServiceCollection) As IServiceCollection

Parametri di tipo

T

Tipo di arricchimento.

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere il tipo di arricchimento.

Restituisce

Valore di services.

Eccezioni

services è null.

Si applica a