February 03, 2006

.Net licensing with Registry

1- You must use your LicenseProvider on the top of your control class like:
[LicenseProvider(typeof(MYLicenseProvider))]
2- You must check the validation of License in constractor's control class by
LicenseManager.Validate(typeof(MYControl), this);
3- You must define you specified MYLicenseProvider and override GetLicense function and read something from registry and return a valid instance of "Licence".

PS: The promise is that you define your License class and return one object of that
public class MYLicense : License {...}
PS: Another application can fill up registry for use by this control

No comments: