ComponentModel;
namespace ControlsBook2Lib.CH12.LiveSearchControls
{
///
/// License class for server controls using RSA crypto
/// public class RsaLicense : License
{
private Type type;
private string licenseKey;
private string guid;
private DateTime expireDate;
private bool _disposed;
///
/// Constructor for RsaLicense control license class
/// ///
Type of server control to license
///
Full key value of license
///
Guid for server control type build
///
Date license expires
public RsaLicense(Type type, string key, string guid, DateTime expireDate)
{
licenseKey = key;
this.type = type;
this.guid = guid;
this.expireDate = expireDate;
}
///
/// Full key value of license stored in license file
/// public override string LicenseKey
{
get
{
return licenseKey;
}
}
///
/// Server control type the license is bound to
/// 680 CHAPTER 13 ?– PACKAGING AND DEPLOYMENT
public Type AssociatedServerControlType
{
get
{
return type;
}
}
///
/// Guid representing specific build of server control type
/// public string Guid
{
get
{
return guid;
}
}
///
/// Expiration date of license
/// public DateTime ExpireDate
{
get
{
return expireDate;
}
}
///
/// You must override Dispose for controls derived from the License clsas
/// public sealed override void Dispose()
{
//Dispose of any unmanaged resourcee
Dispose(true);
GC.
Pages:
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866