C# Class GitHub.Primitives.HostAddress

显示文件 Open project: github/VisualStudio Class Usage Examples

Public Properties

Property Type Description
GitHubDotComHostAddress HostAddress

Public Methods

Method Description
Create ( Uri hostUri ) : HostAddress

Creates a host address based on the hostUri based on the expected patterns for GitHub.com and GitHub Enterprise instances. The passed in URI can be any URL to the instance.

Create ( string host ) : HostAddress

Creates a host address from a host name or URL as a string.

Equals ( object obj ) : bool
GetHashCode ( ) : int
HostAddress ( ) : System
IsGitHubDotCom ( ) : bool
IsGitHubDotComUri ( Uri hostUri ) : bool
operator ( ) : bool

Private Methods

Method Description
HostAddress ( Uri enterpriseUri ) : System

Method Details

Create() public static method

Creates a host address based on the hostUri based on the expected patterns for GitHub.com and GitHub Enterprise instances. The passed in URI can be any URL to the instance.
public static Create ( Uri hostUri ) : HostAddress
hostUri System.Uri The URI to a GitHub or GitHub Enterprise instance.
return HostAddress

Create() public static method

Creates a host address from a host name or URL as a string.
public static Create ( string host ) : HostAddress
host string
return HostAddress

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

HostAddress() public method

public HostAddress ( ) : System
return System

IsGitHubDotCom() public method

public IsGitHubDotCom ( ) : bool
return bool

IsGitHubDotComUri() public static method

public static IsGitHubDotComUri ( Uri hostUri ) : bool
hostUri System.Uri
return bool

operator() public static method

public static operator ( ) : bool
return bool

Property Details

GitHubDotComHostAddress public_oe static_oe property

public static HostAddress,GitHub.Primitives GitHubDotComHostAddress
return HostAddress