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.
Assembly: SmartcryptProtocol.dll
Syntax
public sealed class Url : IEquatable<Url>
Methods
Equals(Url)
Declaration
public bool Equals(Url other)
Parameters
Type |
Name |
Description |
Url |
other |
|
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
NewInstance(String, String)
Declaration
public static Url NewInstance(string rootPath, string apiPathAndQuery = "")
Parameters
Type |
Name |
Description |
String |
rootPath |
|
String |
apiPathAndQuery |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(Url, Url)
Declaration
public static bool operator ==(Url left, Url right)
Parameters
Type |
Name |
Description |
Url |
left |
|
Url |
right |
|
Returns
Inequality(Url, Url)
Declaration
public static bool operator !=(Url left, Url right)
Parameters
Type |
Name |
Description |
Url |
left |
|
Url |
right |
|
Returns
Implements