SocketsHttpHandler.MeterFactory Propriété

Définition

Important

Cette API n’est pas conforme CLS.

Obtient ou définit la IMeterFactory valeur à créer une instance personnalisée MeterSocketsHttpHandler .

public:
 property System::Diagnostics::Metrics::IMeterFactory ^ MeterFactory { System::Diagnostics::Metrics::IMeterFactory ^ get(); void set(System::Diagnostics::Metrics::IMeterFactory ^ value); };
[System.CLSCompliant(false)]
public System.Diagnostics.Metrics.IMeterFactory? MeterFactory { get; set; }
[<System.CLSCompliant(false)>]
member this.MeterFactory : System.Diagnostics.Metrics.IMeterFactory with get, set
Public Property MeterFactory As IMeterFactory

Valeur de propriété

Attributs

Exceptions

Une opération a déjà été démarrée sur l’instance actuelle.

L’instance actuelle a été supprimée.

Remarques

Lorsqu’elle MeterFactory est définie sur une valeur différentenull , toutes les métriques émises par l’instance SocketsHttpHandler sont enregistrées à l’aide de l’élément Meter fourni par le IMeterFactory.

S’applique à