Click to See Complete Forum and Search --> : [LicenseProvider(typeof(LicFileLicenseProvider))] etc


FoodBard
April 17th, 2005, 08:11 AM
Sample:
http://www.codeguru.com/Csharp/.NET/net_framework/licensing/article.php/c5469/

it used
license = LicenseManager.Validate(typeof(LicensedColorComboBox), this);


Why does it not directly use
license = LicFileLicenseProvider.GetKey
or the IsKeyValid etc?

And isn't a [LicenseProvider(typeof(LicFileLicenseProvider))] attribute easy to strip from an assembly? So someone could insert their own LicenseProvider?

FoodBard
April 17th, 2005, 08:13 AM
and in the RegistryLicenseProvider sample, why

private License license = null;
instead of eg
private DesigntimeRegistryLicense license = null;


LicenseManager.Validate accepts any License object as OK, but what about a valid License that's expired? Where would that info be implemented??