Click or drag to resize
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
Assembly: ErrorUnit (in ErrorUnit.dll) Version: 1.3.0
Syntax
C#
public static I Wrap<I>(
	I classObject
)
where I : class

Parameters

classObject
Type: I
Object of Interface

Type Parameters

I
Interface of object

Return Value

Type: I
Proxied object, or original object if no interfaces or virtual methods found on class.
See Also