C# Class DXVcs2Git.Core.WebHookHelper

Datei anzeigen Open project: Xarlot/DXVcs2Git

Public Methods

Method Description
EnsureWebHook ( NGitLab.Models.ProjectHook webHook ) : bool
GetSharedHookUrl ( IPAddress ip, string sharedWebHookPath ) : string
IsSameHost ( Uri url, IPAddress ip ) : bool
IsSharedHook ( string sharedwebhookPath, Uri url ) : bool
Replace ( Uri url, IPAddress ip ) : Uri

Method Details

EnsureWebHook() public static method

public static EnsureWebHook ( NGitLab.Models.ProjectHook webHook ) : bool
webHook NGitLab.Models.ProjectHook
return bool

GetSharedHookUrl() public static method

public static GetSharedHookUrl ( IPAddress ip, string sharedWebHookPath ) : string
ip System.Net.IPAddress
sharedWebHookPath string
return string

IsSameHost() public static method

public static IsSameHost ( Uri url, IPAddress ip ) : bool
url System.Uri
ip System.Net.IPAddress
return bool

IsSharedHook() public static method

public static IsSharedHook ( string sharedwebhookPath, Uri url ) : bool
sharedwebhookPath string
url System.Uri
return bool

Replace() public static method

public static Replace ( Uri url, IPAddress ip ) : Uri
url System.Uri
ip System.Net.IPAddress
return System.Uri