Kudu.Services.ServiceHookHandlers.CodebaseHqHandler.ParserMatches C# (CSharp) Method

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
        protected override bool ParserMatches(HttpRequestBase request, JObject payload, string targetBranch)
        {
            return (request.UserAgent != null && request.UserAgent.StartsWith("Codebasehq", StringComparison.OrdinalIgnoreCase));
        }