Temporary Event Consumers

[This is preliminary documentation and subject to change.]

Temporary event consumers receive notifications of events only when they are running. Typical temporary consumers are user interface applications requiring notification of events that affect the data that displayed to end-users. Temporary consumers register for events whenever they wish and cancel the registration when they are no longer interested. CIMOM holds the registrations in memory; they are not stored persistently.

There are two ways that an application can register as a temporary consumer:

WBEM recommends that all temporary consumers implement the first approach. The main advantage of this approach is that notifications are delivered asynchronously as they occur. Asynchronous delivery of notifications makes polling unnecessary and it improves performance.

The only advantage to the second approach is that the consumer need not implement IWbemObjectSink. However, it means the consumer must poll each time it wants to receive event notifications, and polling is a time-consuming and inefficient technique. This approach is recommended for use only in unusual circumstances.