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
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