Comparteix a través de


MeterFactoryExtensions.Create Método

Definición

Crea un Meter objeto con el especificado name, versiony tags.

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

IMeterFactory que se usa para crear Meter.

name
String

Nombre del objeto Meter.

version
String

La versión de Meter.

tags
IEnumerable<KeyValuePair<String,Object>>

Etiquetas que se van a asociar a .Meter

Devoluciones

con Meter el especificado name, versiony tags.

Se aplica a