Ejemplo n.º 1
0
		public void LogActiviation(string licenseKey, ActivationResults activationResult, string ipAddress)
		{
			ActivationLog log = new ActivationLog();
			log.LicenseKey = _hashingProvider.ComputeHash(licenseKey, "SHA256");
			log.ActivationResult = activationResult;
			log.IpAddress = ipAddress;
			log.Timestamp = DateTime.Now;

			_activationLogRepository.SaveActivationLog(log);
		}
Ejemplo n.º 2
0
        public void LogActiviation(string licenseKey, ActivationResults activationResult, string ipAddress)
        {
            ActivationLog log = new ActivationLog();

            log.LicenseKey       = _hashingProvider.ComputeHash(licenseKey, "SHA256");
            log.ActivationResult = activationResult;
            log.IpAddress        = ipAddress;
            log.Timestamp        = DateTime.Now;

            _activationLogRepository.SaveActivationLog(log);
        }