An assembly-based license provider.
| C# |
public class AssemblyLicenseProvider : LicenseProvider
| All Members | Constructors | Methods | Events | ||
| Icon | Member | Description |
|---|---|---|
| AssemblyLicenseProvider()()() | Initializes a new instance of the AssemblyLicenseProvider class | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLicense(LicenseContext, Type, Object, Boolean) |
Generates a license if a valid key can be obtained.
(Overrides LicenseProvider.GetLicense(LicenseContext, Type, Object, Boolean).) | |
| GetSavedKey(Type) |
Gets a saved license key from the registry if it's there.
| |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsKeyValid(Type, String, Boolean%) |
Determines whether a key is valid for a type's assembly by validating the key's
signature and embedded data values.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| NewLicenseGranted |
Occurs when the user enters a valid license key and a License is granted.
| |
| OnNewLicenseGranted(LicenseProviderEventArgs) |
Raises the NewLicenseGranted event.
| |
| PromptForKey(Type, Boolean) |
Prompts the user for a license key. If valid, the method saves it to the registry
and raises the NewLicenseGranted event.
| |
| RemoveSavedKey(Type) |
Removes a saved license key from the registry if it's there.
| |
| ToString()()() | (Inherited from Object.) |
| Object | ||
| LicenseProvider | ||
| AssemblyLicenseProvider | ||