internal static Renewal Create(PasswordGenerator generator) { var ret = new Renewal { New = true, Id = ShortGuid.NewGuid().ToString() }; return(ret); }
public Order( Renewal renewal, Target target, string?cacheKeyPart = null, string?friendlyNamePart = null) { Target = target; Renewal = renewal; CacheKeyPart = cacheKeyPart; FriendlyNamePart = friendlyNamePart; }
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); }
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); }
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); }