Share via


Caching Application Block WMI Events

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

The Caching Application Block is instrumented with the following Windows Management Instrumentation (WMI) events:

  • CacheFailureEvent
  • CacheCallbackFailureEvent
  • CacheScavengedEvent
  • CacheConfigurationFailureEvent

The following tables describe each WMI event's properties.

CacheFailureEvent Properties

WMI property

Description

ErrorMessage

The error message that describes the failed caching activity.

ExceptionMessage

The message for the exception that was raised when the caching activity failed.

InstanceName

The ID of the cache manager that suffered the failure, as specified in the configuration file.

UtcTimeStamp

The time that the caching activity failed.

CacheCallbackFailureEvent Properties

WMI property

Description

Key

The key of the cache item that expired.

ExceptionMessage

The message for the exception that was raised when the callback (which notifies the application that an item expired) failed.

InstanceName

The ID of the cache manager that suffered the failure, as specified in the configuration file.

UtcTimeStamp

The time that the callback failed.

CacheScavengedEvent Properties

WMI property

Description

ItemsScavenged

The number of items scavenged from the cache.

InstanceName

The ID of the cache manager from which items were scavenged, as specified in the configuration file.

UtcTimeStamp

The time that the scavenging event occurred.

CacheConfigurationFailureEvent Properties

WMI property

Description

ExceptionMessage

The message for the exception that was raised when the attempt to create or configure a cache manager failed.

InstanceName

The ID of the cache manager that could not be created or configured, as specified in the configuration file.

UtcTimeStamp

The time that the configuration failure occurred.