/// <summary> /// Parses a URI string and constructs a builder. /// </summary> /// <param name="uri">The URI used to set the builder's initial values.</param> public HttpsUniformResourceIdentifierBuilder(string uri) { BuilderUtil.ApplyUriReference(this, uri, HttpsUniformResourceIdentifier.HttpsScheme); }
/// <summary> /// Parses a URI string and constructs a builder. /// </summary> /// <param name="uri">The URI used to set the builder's initial values.</param> public GenericUniformResourceIdentifierBuilder(string uri) { WithScheme(BuilderUtil.ApplyUriReference(this, uri)); }
/// <summary> /// Constructs a builder from an existing HTTPS URI. /// </summary> /// <param name="uri">The URI used to set the builder's initial values.</param> public HttpsUniformResourceIdentifierBuilder(HttpsUniformResourceIdentifier uri) { BuilderUtil.ApplyUriReference(this, uri); }
/// <summary> /// Constructs a builder from an existing URI. /// </summary> /// <param name="uri">The URI used to set the builder's initial values.</param> public GenericUniformResourceIdentifierBuilder(GenericUniformResourceIdentifier uri) { _ = uri ?? throw new ArgumentNullException(nameof(uri)); BuilderUtil.ApplyUriReference(this, uri).WithScheme(uri.Scheme); }
private static Utility.DelegateFactory <GenericUniformResourceIdentifier> CreateFactory(string scheme) { return((userInfo, host, port, pathSegments, query, fragment) => BuilderUtil.ApplyUriReference(new GenericUniformResourceIdentifierBuilder().WithScheme(scheme), userInfo, host, port, pathSegments, query, fragment).Build()); }
/// <summary> /// Parses a relative reference string and constructs a builder. /// </summary> /// <param name="relativeReference">The relative reference used to set the builder's initial values.</param> public RelativeReferenceBuilder(string relativeReference) { BuilderUtil.ApplyUriReference(this, relativeReference, null); }
/// <summary> /// Constructs a builder from an existing relative reference. /// </summary> /// <param name="relativeReference">The relative reference used to set the builder's initial values.</param> public RelativeReferenceBuilder(RelativeReference relativeReference) { BuilderUtil.ApplyUriReference(this, relativeReference); }
/// <summary> /// Constructs a builder from an existing URI. /// </summary> /// <param name="uri">The URI used to set the builder's initial values.</param> public GenericUniformResourceIdentifierBuilder(GenericUniformResourceIdentifier uri) { BuilderUtil.ApplyUriReference(this, uri).WithScheme(uri.Scheme); }