/// <summary> /// Private Constructor to ensure that there will be only one instance /// this will initialize properties /// creates the ManastoneDatabase instance /// It will also retrieve the Manastone serverVersion /// and try to Receive the CustomerReference /// </summary> /// <param name="serverUrl"></param> private ManastoneClient(string serverUrl, string productUUID, LicenseCheckType lCheck) { _url = serverUrl; _database = new ManastoneDatabase(); _database.Log.AddToLogList(FnLog.FnLog.LogType.DrmLog, "MANASTONE STARTED", ""); _productUuid = productUUID; _licCheck = lCheck; ManastoneServerVersion = RetrieveManastoneServerVersion().ToString(); RetrieveCustomerReference(new CustomerReferenceRequest(_database.ActivationKey)); }
public static void SetInstance(string serverUrl, string productUuid, LicenseCheckType licCheck = LicenseCheckType.Online) { _instance = new ManastoneClient(serverUrl, productUuid, licCheck); }