Sorry it's been awhile since I've posted anything. I've been pretty busy with things after getting back from my vacation, and I've had little time to think about posting let alone actually posting. But, today I stumbled upon something cool in the iMotion Edgeware.
I've used the ManagementClientService to register my objects for the dashboard which among other things provides health level information. But, it has a a corresponding ManagementClient class that can do some cool things that I didn't realize until now.
The most obvious things it does is let you know when the server has been connected or disconnected and when an object registration event occurs. But, what I thought was very cool is that it exposes a ManagedObject that represents the event control that is registered with the ManagementClientService. The ManagedObject can be queried by name, or a reference can be obtained when the object is registered if the ObjectRegistered event of the ManagementClient class is used.
The ManagedObject lets you do some cool things like change property values and receive notification of changes for properties marked-up with the MonitoredProperty attribute. Here is a list of some of the things you can do with the ManagedObject class:
- Get properties
- Get health level
- Get performance counters
- Invoke methods (they must have the ManagementTask attribute)
- Receive notification of property changes
- Receive notification of health changes
- Receive management events
- Receive tracing information
It is abundantly clear that these classes can be very useful in certain circumstances. They could also be a security risk and could significantly increase network traffic, so they should be used with care.