コード例 #1
0
 public static LicenseManagerSingleton GetOrCreateSingleton(string keyPrefix, string[] candidateCacheFolders)
 {
     lock (SingletonLock)
     {
         return(_singleton ?? (_singleton = new LicenseManagerSingleton(
                                   ImazenPublicKeys.Production,
                                   new RealClock(),
                                   new PersistentGlobalStringCache(keyPrefix, candidateCacheFolders))));
     }
 }
コード例 #2
0
 // Actually needs an issue receiver? (or should *it* track?) And an HttpClient and Cache
 public LicenseChain(LicenseManagerSingleton parent, string licenseId)
 {
     this.parent = parent;
     Id          = licenseId;
     LocalLicenseChange();
 }