Compartir vía


IResourceMonitorBuilder.AddPublisher<T> Método

Definición

Agrega un publicador de uso de recursos que se invoca cada vez que se calcula el uso de recursos.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceUtilizationPublisher Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ AddPublisher();
public Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder AddPublisher<T> () where T : class, Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceUtilizationPublisher;
abstract member AddPublisher : unit -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceUtilizationPublisher)
Public Function AddPublisher(Of T As {Class, IResourceUtilizationPublisher}) () As IResourceMonitorBuilder

Parámetros de tipo

T

Tipo de implementación del publicador.

Devoluciones

Valor de la instancia de objeto.

Se aplica a