/// <summary> /// Creates a new LicenseServer. /// </summary> /// <param name="configuration">The ILicenseConfiguration to use.</param> public LicenseServer(ILicenseConfiguration configuration) { if (configuration == null) { throw new ArgumentNullException("configuration"); } _configuration = configuration; }
/// <summary> /// Creates a new DiskStore using the specified values. /// </summary> /// <param name="configuration">An ILicenseConfiguration to use.</param> public DiskStore(ILicenseConfiguration configuration) { if (configuration == null) { throw new ArgumentNullException("configuration"); } _path = configuration.LocalStoragePath; }
/// <summary> /// Creates a new GracePeriodNotification. /// </summary> /// <param name="license">The Licence that has expired.</param> /// <param name="configuration">The configuration to use.</param> public GracePeriodNotification(License license, ILicenseConfiguration configuration) { if (license == null) { throw new ArgumentNullException("license"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } _license = license; _configuration = configuration; }