コード例 #1
0
ファイル: LicenseServer.cs プロジェクト: rickeygalloway/Test
 /// <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;
 }
コード例 #2
0
ファイル: DiskStore.cs プロジェクト: rickeygalloway/Test
 /// <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;
 }
コード例 #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;
 }