Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2012 20:30
Show Gist options
  • Select an option

  • Save anonymous/4321894 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4321894 to your computer and use it in GitHub Desktop.
Creando clases con Interceptores
Generator.CreateClassProxy<ServicioWeb>(new ErrorLoggingInterceptor());
public class ErrorLoggingInterceptor : IInterceptor
{
public void Intercept(IInvocation invocation)
{
try
{
invocation.Proceed();
}
catch (Exception exception)
{
// loggear
throw exception;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment