I need to protect an Asp.Net Web Api 2.2
application using Portable.Licensing.
I have organized the application by creating multiple Asp.Net Areas
.
Ex:
- Core
- Accounting
- Human Resource
- Inventory
I need to licence each and every Areas. If customer has purchased the Accounting module, then only he should be able to access the Accounting functionality. Otherwise I have to display an error message.
And also I would like to generate a unlike machine key to protect software from piracy.
So how can I use portable licensing with Asp.Net Areas? Where/At which point the license needs to be validated?
Could any one please help me to achieve my requirement by providing some instructions? Providing sample code is highly appreciated!.