IMeterFactory Interface
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
C#
public interface IMeterFactory : IDisposable
type IMeterFactory = interface
interface IDisposable
Public Interface IMeterFactory
Implements IDisposable
- Implements
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.
Create(Meter |
Creates a new Meter instance. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) |
Create(IMeter |
Creates a Meter with the specified |
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET | 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา
คำติชม .NET
.NET เป็นโครงการโอเพนซอร์ส เลือกลิงก์เพื่อให้คำติชม: