NO METHOD ESCAPES CODECOP

The JSON configurable method interception library for .NET

About

CodeCop is a library that builds on top of JSON to provide a fast unobtrusive way to write method interceptors for your .NET apps.

Interceptor placement is independent from your app's code. It's done on a JSON file which means that at anytime you can add or remove interceptors without code changes or redeploys.

Method interception happens in one or all of these stages, before execution, after execution and it is possible also to override the behaviour completely. CodeCop can intercept your code and also other 3rd party assemblies your app depends on.

If you're not a JSON lover and you prefer more of a coding approach, don't worry we've got you covered! CodeCop also provides a full-blown fluent API for you to use and abuse.

Read Wiki

WHY CODECOP

From code hooking for instrumentation scenarios, to pre/post processing with decorators to method surrogation for mocking or faking purposes, CODECOP is your new best buddy. It's goal is to be the simplest, fastest and smarter way to intercept, add, change or remove behaviours inside your apps.

JSON Configuration

single point for interception configuration.

Unobtrusive

no assembly rewrites, attributes or special objects.

Keep it DRY

Boilerplate code reduction, write single interceptors, apply to multiple targets.

Unlimited Possibilities

From logging, to exception handling to mocking, your imagination is the limit on the interceptors you can build.

HOW DOES IT WORK

CodeCop uses no proxies, instead it works with the original objects bytecode in-memory. Contrary to the other interception technologies out there, CodeCop is unobtrusive and code-bloat free. Doesn't force you to spread attributes on your code, doesn't need wrapper objects and always leaves the original assembly untouched. You just build your interceptors and specify their targets on a simple JSON file.

WHAT WE INTERCEPT

Free
  • Regular Methods
  • Constructors
  • Properties
  • Generics
  • Async
  • External / 3rd Party Assemblies
  • Override
  • Pipelined Interception
  • Total Methods Allowed (25)
  • Support
  • 1 Year Free Updates
Developer
  • Regular Methods
  • Constructors
  • Properties
  • Generics
  • Async
  • External / 3rd Party Assemblies
  • Override
  • Pipelined Interception
  • Total Methods Allowed (150)
  • Support (Basic)
  • 1 Year Free Updates
Ultimate
  • Regular Methods
  • Constructors
  • Properties
  • Generics
  • Async
  • External / 3rd Party Assemblies
  • Override
  • Pipelined Interception
  • Total Methods Allowed (Unlimited)
  • Support (Premium)
  • 1 Year Free Updates

GET IN TOUCH

Use this form to contact us for any reason. Our team will aim to get you the right answer as quickly as possible.

Close the dialog

Crash Course to Method Interception 5-Day Free Email Course

Method Interception is a powerful technique that can help you or your team to code faster while staying DRY. Subscribe to this course and start taking advantage of all its benefits today.

Subscribe now and get a 10% licensing price discount