Cauldron.Interceptors Namespace |
Class | Description | |
---|---|---|
ExceptionLoggerAttribute |
Intercepts the method and logs an exception.
This interceptor is using NLog. NLog configuration will affect this interceptor.
| |
ExceptionToEventLogAttribute |
Provides an interceptor that logs an exception to the Windows Event Log.
| |
ExecutionTimeAttribute |
Provides a simple performance measurement of a code block
| |
PerformanceLoggerAttribute |
Intercepts the method and logs its execution time.
This interceptor is using NLog. NLog configuration will affect this interceptor.
| |
PropertyOnSetAttribute |
Provides an interceptor that can invoke a method of the type instance. The method must have the following name 'On_____Set' where the blanks is the property's name. The method can be void and parameterless or void and with 2 arguments of type Object. The first argument is the old value and the second is the new value. | |
RegistryAttribute |
Provides an interceptor that can read and write registry values.
It supports the following types:
Int32,
UInt32,
Int64,
UInt64,
String,
String[],
Byte[],
DirectoryInfo and
FileInfo.
This interceptor can be applied on a single property. If you require a class wide registry parsing use RegistryClassAttribute instead.
| |
RegistryClassAttribute |
Provides an interceptor that can read and write registry values.
It supports the following types:
Int32,
UInt32,
Int64,
UInt64,
String,
String[],
Byte[],
DirectoryInfo and
FileInfo.
This interceptor can be applied to a class and will intercept all properties declared in the class.
If you do not wish to intercept a property decorate it with the RegistryClassDoNotInterceptAttribute.
| |
RegistryClassDoNotInterceptAttribute |
Indicates that the method or property should not be intercepted by the RegistryClassAttribute interceptor.
| |
TimedCacheAttribute |
Provides a timed global caching for the intercepted method. The caching is implemented using
Default
The cache is dependent to the passed arguments. The arguments requires a proper
implementation of GetHashCode and a unique ToString value.
The cache of the TimedCacheAttribute can be forcefully cleared by Clear.
| |
TimedCacheChangeMonitor |
A custom type that monitors changes in the state of the data which a cache item depends on.
|