/// <summary> /// Initializes a new instance of the <see cref="DnsDomainUpdateConfiguration"/> class with /// the specified values. /// </summary> /// <param name="domain">The domain to update.</param> /// <param name="timeToLive">The time-to-live for the domain. If this value is <c>null</c>, the existing value for the domain is not updated.</param> /// <param name="emailAddress">The email address associated with the domain. If this value is <c>null</c>, the existing value for the domain is not updated.</param> /// <param name="comment">An optional comment associated with the domain. If this value is <c>null</c>, the existing value for the domain is not updated.</param> /// <exception cref="ArgumentNullException">If <paramref name="domain"/> is <c>null</c>.</exception> public DnsDomainUpdateConfiguration(DnsDomain domain, string emailAddress = null, string comment = null, TimeSpan? timeToLive = null) { if (domain == null) throw new ArgumentNullException("domain"); _id = domain.Id; _emailAddress = emailAddress; _comment = comment; _timeToLive = timeToLive.HasValue ? (int?)timeToLive.Value.TotalSeconds : null; }
public DomainProperties(CloudDnsProvider provider, DnsDomain domain) { if (provider == null) throw new ArgumentNullException("provider"); if (domain == null) throw new ArgumentNullException("domain"); _provider = provider; _domain = domain; }
/// <summary> /// Initializes a new instance of the <see cref="DnsDomainUpdateConfiguration"/> class with /// the specified values. /// </summary> /// <param name="domain">The domain to update.</param> /// <param name="timeToLive">The time-to-live for the domain. If this value is <see langword="null"/>, the existing value for the domain is not updated.</param> /// <param name="emailAddress">The email address associated with the domain. If this value is <see langword="null"/>, the existing value for the domain is not updated.</param> /// <param name="comment">An optional comment associated with the domain. If this value is <see langword="null"/>, the existing value for the domain is not updated.</param> /// <exception cref="ArgumentNullException">If <paramref name="domain"/> is <see langword="null"/>.</exception> public DnsDomainUpdateConfiguration(DnsDomain domain, string emailAddress = null, string comment = null, TimeSpan?timeToLive = null) { if (domain == null) { throw new ArgumentNullException("domain"); } _id = domain.Id; _emailAddress = emailAddress; _comment = comment; _timeToLive = timeToLive.HasValue ? (int?)timeToLive.Value.TotalSeconds : null; }
private CloudDomainNode CreateDomainNode(CloudDnsProvider provider, DnsDomain domain) { return new CloudDomainNode(provider, domain); }