EnrichmentServiceCollectionExtensions 类

定义

允许在依赖项注入容器中注册遥测扩充器。

public ref class EnrichmentServiceCollectionExtensions abstract sealed
public static class EnrichmentServiceCollectionExtensions
type EnrichmentServiceCollectionExtensions = class
Public Module EnrichmentServiceCollectionExtensions
继承
EnrichmentServiceCollectionExtensions

方法

AddLogEnricher(IServiceCollection, ILogEnricher)

注册日志扩充器实例。

AddLogEnricher<T>(IServiceCollection)

注册日志扩充器类型。

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

注册静态日志扩充器实例。

AddStaticLogEnricher<T>(IServiceCollection)

注册静态日志扩充器类型。

适用于