Compartilhar via


MeterFactoryExtensions.Create Método

Definição

Cria um Meter com os , versione tagsespecificadosname.

public static System.Diagnostics.Metrics.Meter Create (this System.Diagnostics.Metrics.IMeterFactory meterFactory, string name, string? version = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default);
static member Create : System.Diagnostics.Metrics.IMeterFactory * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Meter
<Extension()>
Public Function Create (meterFactory As IMeterFactory, name As String, Optional version As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As Meter

Parâmetros

meterFactory
IMeterFactory

O IMeterFactory a ser usado para criar a Meter.

name
String

O nome do Meter.

version
String

A versão do Meter.

tags
IEnumerable<KeyValuePair<String,Object>>

As marcas a serem associadas ao Meter.

Retornos

Um Meter com os , versione tagsespecificadosname.

Aplica-se a