Question about License Providers

N

~~~ .NET Ed ~~~

When I create my own license provider I override GetLicense and IsKeyValid.
My question is whether IsKeyValid is only called from within GetLicense() or
will IsKeyValid be called randomly (by the framework) without calling
GetLicense() ? I have not found that information anywhere and I would like
to get it cleared out before I make the wrong kind of assumptions.

I also noticed that SetSavedKey doesn't do anything, next time it comes
around GetSavedKey always returns null even though the key has been saved.

And shouldn't there be some sort of overload for IsValidKey that takes the
actual class that is derived from License?, it seems very ineffective that
whenever IsValidKey is called it gets the entire "key" (license to be more
precise) so that it has to be re-parsed, whereas if it received a License
derivate as a parameter there would be more straightforward processing.

Regards,
Emilio
 
N

~~~ .NET Ed ~~~

Just noticed that IsValidKey is a protected override so that should be ok.
The other
items in the post still remain open.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top