Java 使用 MBean 提供监控 API,非常方便。 .Net 世界中有类似的东西吗?
请您参考如下方法:
我对 MBean 一点都不熟悉,但是来自 this description :
An MBean is a managed Java object, similar to a JavaBeans component, that follows the design patterns set forth in the JMX specification. An MBean can represent a device, an application, or any resource that needs to be managed. MBeans expose a management interface that consists of the following:
- A set of readable or writable attributes, or both.
- A set of invokable operations.
- A self-description.
我想这可能听起来像 MEF或 MAF (System.Addins)或许。它可能有助于更好地理解如何您希望在 .NET 中使用 MBean 等效项。了解用例可能会使这个问题更容易回答。
刚刚偶然发现 this相当过时的 CodeProject 项目,旨在移植该功能。也许它可以作为一个不错的起点?
