Exemple #1
0
        private async System.Threading.Tasks.Task ToDos_MarkAllTodosAsDoneAsync(Meziantou.GitLab.MarkAllTodosAsDoneToDoRequest request, Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            string url = Meziantou.GitLab.GitLabClient.ToDos_MarkAllTodosAsDoneAsync_BuildUrl();

            using (System.Net.Http.HttpRequestMessage requestMessage = new System.Net.Http.HttpRequestMessage())
            {
                requestMessage.Method     = System.Net.Http.HttpMethod.Post;
                requestMessage.RequestUri = new System.Uri(url, System.UriKind.RelativeOrAbsolute);
                HttpResponse?response = null;
                try
                {
                    response = await this.SendAsync(requestMessage, requestOptions, cancellationToken).ConfigureAwait(false);

                    await response.EnsureStatusCodeAsync(cancellationToken).ConfigureAwait(false);
                }
                finally
                {
                    if ((response != null))
                    {
                        response.Dispose();
                    }
                }
            }
        }
Exemple #2
0
 System.Threading.Tasks.Task Meziantou.GitLab.IGitLabToDosClient.MarkAllTodosAsDoneAsync(Meziantou.GitLab.MarkAllTodosAsDoneToDoRequest request, Meziantou.GitLab.RequestOptions?requestOptions, System.Threading.CancellationToken cancellationToken)
 {
     return(this.ToDos_MarkAllTodosAsDoneAsync(request, requestOptions, cancellationToken));
 }
Exemple #3
0
 public static System.Threading.Tasks.Task MarkAllTodosAsDoneAsync(this Meziantou.GitLab.IGitLabToDosClient client, Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Meziantou.GitLab.MarkAllTodosAsDoneToDoRequest request = new Meziantou.GitLab.MarkAllTodosAsDoneToDoRequest();
     return(client.MarkAllTodosAsDoneAsync(request, requestOptions, cancellationToken));
 }