Exemple #1
0
        private bool IsTimeOfActivationValid(Activation activation)
        {
            var difference = activation.TimeOfActivation - DateTime.Now;

            return(difference <= TimeSpan.FromMinutes(5) && difference >= -TimeSpan.FromHours(5));
        }
Exemple #2
0
 public void SaveActivation(Activation activation)
 {
     // sideeffects only: save activation in registry
 }
Exemple #3
0
        // ================================FUNCTION IMPLEMENTATION END================================ \\

        private bool HasValidActivationTime(Activation activation)
        {
            return(IsTimeOfActivationValid(activation) || activation.Ok);
        }