Show / Hide Table of Contents

Class Url

Builds a semantically correct URL string for a given root server and resource suffix. Suffixes that start with / will be resolved directly against the root path; suffixes that do not will be resolved against the api/v1.0 path. Immutable and ToString() friendly.

Inheritance
Object
Url
Implements
IEquatable<Url>
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: PKWARE.Smartcrypt.Protocol
Assembly: SmartcryptProtocol.dll
Syntax
public sealed class Url : IEquatable<Url>
Remarks

URIs are often talked about in their component forms. For example, you might have the scheme, the authority, the path, the query parameters, and the fragment. You can think of the "parts" of this URL class the same way, but tailored to PKWARE use cases. There are generally 2 things that MetaClient is interested in: the root string at which the server is location, and the string representing a request endpoint and parameters. Often, the root string includes a portion of a URI path, such as https://www.smartcrypt.com/mds.

Methods

Equals(Url)

Declaration
public bool Equals(Url other)
Parameters
Type Name Description
Url other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

NewInstance(String, String)

Declaration
public static Url NewInstance(string rootPath, string apiPathAndQuery = "")
Parameters
Type Name Description
String rootPath
String apiPathAndQuery
Returns
Type Description
Url

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Operators

Equality(Url, Url)

Declaration
public static bool operator ==(Url left, Url right)
Parameters
Type Name Description
Url left
Url right
Returns
Type Description
Boolean

Inequality(Url, Url)

Declaration
public static bool operator !=(Url left, Url right)
Parameters
Type Name Description
Url left
Url right
Returns
Type Description
Boolean

Implements

System.IEquatable<T>
Back to top Copyright © 2018 PKWARE, Inc.