Beispiel #1
0
        public static void Activate(string email)
        {
            _activationClient = new ActivationClient(email);
#if NETFULL
            _activationClient.ActivateAsync();
#else
            var result = _activationClient.ActivateAsync();
            result.Wait();
#endif
        }
Beispiel #2
0
 /// <summary>
 /// Activates product to be used.
 /// Disclaimer! We are not collecting your data without your consent, your e-mail is the only personal data used in our system.
 /// </summary>
 /// <param name="email">email used to identify your activation</param>
 /// <param name="key">key used for offline activation</param>
 public static void Activate(string email, string key = null)
 {
     _activationMail = email;
     if (_client == null)
     {
         _client = new ActivationClient();
         _client.Init(_activationMail, key);
     }
     if (string.IsNullOrWhiteSpace(key))
     {
         _client.Register((ushort)ProductsEnum.IGNValidator);
     }
     _activated = _client.IsRegistered((ushort)ProductsEnum.IGNValidator);
 }