C# Class Kudu.Services.ServiceHookHandlers.GitHubCompatHandler

Default Servicehook Handler, uses github format.
Inheritance: ServiceHookHandlerBase
Mostra file Open project: projectkudu/kudu

Public Methods

Method Description
TryParseDeploymentInfo ( System.Web.HttpRequestBase request, Newtonsoft.Json.Linq.JObject payload, string targetBranch, Kudu.Services.ServiceHookHandlers.DeploymentInfo &deploymentInfo ) : DeployAction

Protected Methods

Method Description
DetermineSecurityProtocol ( Newtonsoft.Json.Linq.JObject payload ) : string
GetDeployer ( ) : string
IsDeleteCommit ( string newRef ) : bool
IsNoop ( System.Web.HttpRequestBase request, Newtonsoft.Json.Linq.JObject payload, string targetBranch ) : bool
ParseChangeSet ( string id, Newtonsoft.Json.Linq.JArray commits ) : Kudu.Core.SourceControl.ChangeSet
ParserMatches ( System.Web.HttpRequestBase request, Newtonsoft.Json.Linq.JObject payload, string targetBranch ) : bool

Method Details

DetermineSecurityProtocol() protected method

protected DetermineSecurityProtocol ( Newtonsoft.Json.Linq.JObject payload ) : string
payload Newtonsoft.Json.Linq.JObject
return string

GetDeployer() protected method

protected GetDeployer ( ) : string
return string

IsDeleteCommit() protected static method

protected static IsDeleteCommit ( string newRef ) : bool
newRef string
return bool

IsNoop() protected method

protected IsNoop ( System.Web.HttpRequestBase request, Newtonsoft.Json.Linq.JObject payload, string targetBranch ) : bool
request System.Web.HttpRequestBase
payload Newtonsoft.Json.Linq.JObject
targetBranch string
return bool

ParseChangeSet() protected static method

protected static ParseChangeSet ( string id, Newtonsoft.Json.Linq.JArray commits ) : Kudu.Core.SourceControl.ChangeSet
id string
commits Newtonsoft.Json.Linq.JArray
return Kudu.Core.SourceControl.ChangeSet

ParserMatches() protected method

protected ParserMatches ( System.Web.HttpRequestBase request, Newtonsoft.Json.Linq.JObject payload, string targetBranch ) : bool
request System.Web.HttpRequestBase
payload Newtonsoft.Json.Linq.JObject
targetBranch string
return bool

TryParseDeploymentInfo() public method

public TryParseDeploymentInfo ( System.Web.HttpRequestBase request, Newtonsoft.Json.Linq.JObject payload, string targetBranch, Kudu.Services.ServiceHookHandlers.DeploymentInfo &deploymentInfo ) : DeployAction
request System.Web.HttpRequestBase
payload Newtonsoft.Json.Linq.JObject
targetBranch string
deploymentInfo Kudu.Services.ServiceHookHandlers.DeploymentInfo
return DeployAction