EnrichmentServiceCollectionExtensions.AddLogEnricher Metod

Definition

Överlagringar

Name Description
AddLogEnricher(IServiceCollection, ILogEnricher)

Registrerar en log enricher-instans.

AddLogEnricher<T>(IServiceCollection)

Registrerar en logg berikartyp.

AddLogEnricher(IServiceCollection, ILogEnricher)

Källa:
EnrichmentServiceCollectionExtensions.cs
Källa:
EnrichmentServiceCollectionExtensions.cs

Registrerar en log enricher-instans.

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

Parametrar

services
IServiceCollection

Containern för beroendeinmatning som berikarinstansen ska läggas till i.

enricher
ILogEnricher

Berikarinstansen som ska läggas till.

Returer

Värdet för services.

Undantag

services eller enricher är null.

Gäller för

AddLogEnricher<T>(IServiceCollection)

Källa:
EnrichmentServiceCollectionExtensions.cs
Källa:
EnrichmentServiceCollectionExtensions.cs

Registrerar en logg berikartyp.

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

Typparametrar

T

Berikartyp.

Parametrar

services
IServiceCollection

Containern för beroendeinmatning som berikartypen ska läggas till i.

Returer

Värdet för services.

Undantag

services är null.

Gäller för