Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created March 24, 2014 14:03
Show Gist options
  • Select an option

  • Save mgroves/9740701 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/9740701 to your computer and use it in GitHub Desktop.
[Serializable]
[MulticastAttributeUsage(MulticastTargets.Method, TargetMemberAttributes = MulticastAttributes.Public)]
public class ServiceErrorInterceptor : MethodInterceptionAspect
{
public override void OnInvoke(MethodInterceptionArgs args)
{
try
{
args.Proceed();
}
catch (Exception ex)
{
// we gotta do something here!
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment