CodeCop 1.2.5

CodeCop is a free to use 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 behavior completely.

CodeCop can intercept your code and also other 3rd party assemblies your app depends on.

There is a newer version of this package available.
See the version list below for details.
Install-Package CodeCop -Version 1.2.5
dotnet add package CodeCop --version 1.2.5
<PackageReference Include="CodeCop" Version="1.2.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeCop --version 1.2.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeCop, 1.2.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodeCop as a Cake Addin
#addin nuget:?package=CodeCop&version=1.2.5

// Install CodeCop as a Cake Tool
#tool nuget:?package=CodeCop&version=1.2.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version 1.2.5 corrects issue

Visit for full product information.

Read the project's wiki at for details on how to get started.

Issues? Please report them at

NuGet packages (7)

Showing the top 5 NuGet packages that depend on CodeCop:

Package Downloads
CodeCop Fluent API Wrapper
Interceptor for CodeCop that automatically validates if any non-optional method arguments are not null, or in case of strings also not empty.
Interceptor for CodeCop that automatically integrates MiniProfiler onto each intercepted method.
Interceptor for CodeCop that automatically integrates Statsd onto intercepted methods.
Interceptor for CodeCop to use in Web Applications that automatically validates if user is authenticated on each intercepted method.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.2.1 1,775 3/10/2016
3.2.0 1,193 2/14/2016
3.1.2 1,134 1/23/2016
3.1.1 1,260 12/21/2015
3.1.0 1,192 12/21/2015
3.0.0 1,578 11/25/2015
2.1.1 1,818 11/11/2015
2.0.0-pre 1,221 11/6/2015
1.3.3 1,256 10/29/2015
1.3.2 1,171 10/29/2015
1.3.1 1,060 10/20/2015
1.3.0 1,183 10/11/2015
1.2.9 1,158 10/11/2015
1.2.8 1,126 10/9/2015
1.2.7 1,143 10/9/2015
1.2.6 1,138 10/8/2015
1.2.5 1,167 10/8/2015
1.2.4 1,192 10/7/2015
1.2.3 1,171 10/7/2015
1.2.2 1,166 10/6/2015
1.2.1 1,140 10/5/2015
1.2.0 1,423 10/3/2015
1.1.7 1,285 9/28/2015
1.1.6 1,768 9/27/2015
Show less