ErrorUnitCentralWrapI Method |
Create an ErrorUnit Proxy class, wrapping the specified class so that all exceptions from its interface methods and/or virtual methods are recorded in ErrorUnit format.
Alternately if you are already using Castle.DynamicProxy in your project you can just pass in _ErrorUnitInterceptor as a IInterceptor.
Namespace: ErrorUnit
public static I Wrap<I>( I classObject ) where I : class