/// <summary> /// Creates a new <see cref="Endpoint" /> instance with the specified <paramref name="availability" /> value. /// </summary> /// <returns>A new <see cref="Endpoint" /> instance with the specified <paramref name="availability" /> value.</returns> public Endpoint WithEndpointAvailability(EndpointAvailability availability) { return(new Endpoint(Uri, availability)); }
protected static Endpoint CreateEndpoint(string url, EndpointAvailability ea = EndpointAvailability.Online) { return(new Endpoint(new Uri(url), ea)); }
/// <summary> /// Initializes a new <see cref="Endpoint" /> class with the specified <paramref name="availability" /> and /// <paramref name="uri" />. /// </summary> /// <param name="uri">The etcd endpoint uri.</param> /// <param name="availability">The etcd endpoint availability.</param> public Endpoint(Uri uri, EndpointAvailability availability) { Uri = uri; Availability = availability; }
protected static Endpoint CreateEndpoint(string url, EndpointAvailability ea = EndpointAvailability.Online) { return new Endpoint(new Uri(url), ea); }