Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 /// <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;
 }