File: Metrics\IMetricsBuilder.cs
Web Access
Project: src\src\libraries\Microsoft.Extensions.Diagnostics.Abstractions\src\Microsoft.Extensions.Diagnostics.Abstractions.csproj (Microsoft.Extensions.Diagnostics.Abstractions)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.Extensions.DependencyInjection;
 
namespace Microsoft.Extensions.Diagnostics.Metrics
{
    /// <summary>
    /// Represents a type used to configure the metrics system by registering IMetricsListeners and using rules
    /// to determine which metrics are enabled.
    /// </summary>
    public interface IMetricsBuilder
    {
        /// <summary>
        /// The application <see cref="IServiceCollection"/>. This is used by extension methods to register services.
        /// </summary>
        IServiceCollection Services { get; }
    }
}