Ejemplo n.º 1
0
        internal static Renewal Create(PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New = true,
                Id  = ShortGuid.NewGuid().ToString()
            };

            return(ret);
        }
Ejemplo n.º 2
0
 public Order(
     Renewal renewal,
     Target target,
     string?cacheKeyPart     = null,
     string?friendlyNamePart = null)
 {
     Target           = target;
     Renewal          = renewal;
     CacheKeyPart     = cacheKeyPart;
     FriendlyNamePart = friendlyNamePart;
 }
Ejemplo n.º 3
0
        internal static Renewal Create(string id, PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New         = true,
                Id          = string.IsNullOrEmpty(id) ? ShortGuid.NewGuid().ToString() : id,
                PfxPassword = generator.Generate()
            };

            return(ret);
        }
Ejemplo n.º 4
0
        internal static Renewal Create(string?id, int renewalDays, PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New         = true,
                Id          = string.IsNullOrEmpty(id) ? ShortGuid.NewGuid().ToString() : id,
                PfxPassword = new ProtectedString(generator.Generate()),
                RenewalDays = renewalDays
            };

            return(ret);
        }
Ejemplo n.º 5
0
        internal static Renewal Create(string?id, ScheduledTaskSettings settings, PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New         = true,
                Id          = string.IsNullOrEmpty(id) ? ShortGuid.NewGuid().ToString() : id,
                PfxPassword = new ProtectedString(generator.Generate()),
                Settings    = settings
            };

            return(ret);
        }