Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IMeterFactory Interface

Definition

Namespace:
System.Diagnostics.Metrics
Assembly:
System.Diagnostics.DiagnosticSource.dll
Package:
System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115
Source:
IMeterFactory.cs
Source:
IMeterFactory.cs
Source:
IMeterFactory.cs
Source:
ThisAssembly.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

A factory for creating Meter instances.

public interface class IMeterFactory : IDisposable
public interface IMeterFactory : IDisposable
type IMeterFactory = interface
 interface IDisposable
Public Interface IMeterFactory
Implements IDisposable
Implements

Remarks

Meter factories will be accountable for the following responsibilities:

  • Creating a new meter.
  • Attaching the factory instance as a scope to the Meter constructor for all created Meter objects.
  • Storing created meters in a cache and returning a cached instance if a meter with the same parameters (name, version, and tags) is requested.
  • Disposing of all cached Meter objects upon factory disposal.

Methods

Name Description
Create(MeterOptions)

Creates a new Meter instance.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)

Extension Methods

Name Description
Create(IMeterFactory, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates a Meter with the specified name, version, and tags.

Applies to


Feedback

Was this page helpful?