Wiki

Clone wiki

CodeCop / Licensing

Licensing

So you have decided to take CodeCop to another level and unleash all its power? Wise choice young padawan! To Thank You We Must! :)

Obtaining a new License Key

Head to our home page, select the product that most suits your needs and click the BUY button to acquire a new license.

buy2.jpg

We will send you a brand new license key to the email you specify on the product acquisition form (you should always use this mail when contacting us for any reason).

payment2.jpg

Using your License Key

Once you receive your license key you should ALWAYS paste it on your copconfig.json file (if you leave it blank or this property is missing from the JSON structure, CodeCop will operate in Free mode).

#!json

{
    "Key": "Your product key goes here, leave it blank for Free mode",
}
This is an example of how a full copconfig.json file could look like for a licensed product:

#!json

{
    "Types": [
        {
            "TypeName": "ConsoleApplication1.FooClass, ConsoleApplication1",
            "Methods": [
                {
                    "MethodSignature": "FooMethod1()",
                    "Interceptors": [ "WriteMethodNameToConsoleInterceptor"]
                },
                {
                    "MethodSignature": "get_Property1()",
                    "Interceptors": [ "WriteMethodNameToConsoleInterceptor"]
                }
            ],
          "GenericArgumentTypes": [ ]
        },
        {
            "TypeName": "ConsoleApplication1.MyClass, ConsoleApplication1",
            "Methods": [
                {
                    "MethodSignature": "Method5()",
                    "Interceptor": [ "FooInterceptor", "BarInterceptor"]
                },
                {
                    "MethodSignature": "Method7(Int32)",
                    "Interceptor": [ "WriteMethodNameToConsoleInterceptor"]
                }
            ],
           "GenericArgumentTypes": [ ]
        },
       {
            "TypeName": "ConsoleApplication1.AnotherClass, ConsoleApplication1",
            "Methods": [
                {
                    "MethodSignature": "*",
                    "Interceptors": [ "WriteMethodNameToConsoleInterceptor" ]
                }

            ],
            "GenericArgumentTypes": [ ]
        },
        {  
            "TypeName": "MyApp.MyClass`1, MyAppAssembly",
            "Methods": [
                {
                    "MethodSignature": "Foo()",
                    "Interceptors": [ "LogMethodParametersInterceptor" ]
                }
            ],
            "GenericArgumentTypes": [ "System.Int32", "System.Boolean"]
     }

    ],
    "GlobalInterceptors": ["GlobalFooInterceptor", "GlobalBarInterceptor[MethodName=~Foo]"],
    "Key":"Your product key or leave empty for free product mode"

}

Fluent API

If you are using the Fluent API instead of JSON, make sure you pass the license as argument on the AsFluent method of the Cop class.

NOTE: At the moment we just support PayPal payments, but we are adding other payment methods as CodeCop evolves.

Updated