System.Threading.Tasks.Task <License?> Meziantou.GitLab.IGitLabLicenseClient.GetCurrentLicenseAsync(Meziantou.GitLab.GetCurrentLicenseRequest request, Meziantou.GitLab.RequestOptions?requestOptions, System.Threading.CancellationToken cancellationToken) { return(this.License_GetCurrentLicenseAsync(request, requestOptions, cancellationToken)); }
private async System.Threading.Tasks.Task <License?> License_GetCurrentLicenseAsync(Meziantou.GitLab.GetCurrentLicenseRequest request, Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { string url = Meziantou.GitLab.GitLabClient.License_GetCurrentLicenseAsync_BuildUrl(); using (System.Net.Http.HttpRequestMessage requestMessage = new System.Net.Http.HttpRequestMessage()) { requestMessage.Method = System.Net.Http.HttpMethod.Get; requestMessage.RequestUri = new System.Uri(url, System.UriKind.RelativeOrAbsolute); HttpResponse?response = null; try { response = await this.SendAsync(requestMessage, requestOptions, cancellationToken).ConfigureAwait(false); if ((response.StatusCode == System.Net.HttpStatusCode.NotFound)) { return(default);