Ejemplo n.º 1
0
        public virtual async Task <DatabaseHeaderResponse> DeleteAsync(DeleteDatabaseRequest request)
        {
            var httpRequest = DeleteHttpRequestFactory.Create(request);

            using (var httpResponse = await SendAsync(httpRequest).ForAwait())
                return(await DatabaseHeaderResponseFactory.CreateAsync(request, httpResponse).ForAwait());
        }
Ejemplo n.º 2
0
        public virtual async Task <DatabaseHeaderResponse> DeleteAsync(CancellationToken cancellationToken = default)
        {
            var request     = new DeleteDatabaseRequest(Connection.DbName);
            var httpRequest = DeleteHttpRequestFactory.Create(request);

            using (var httpResponse = await SendAsync(httpRequest, cancellationToken).ForAwait())
                return(await DatabaseHeaderResponseFactory.CreateAsync(request, httpResponse).ForAwait());
        }
Ejemplo n.º 3
0
        public virtual async Task <EntityResponse <T> > DeleteAsync <T>(DeleteEntityRequest <T> request) where T : class
        {
            var httpRequest = DeleteHttpRequestFactory.Create(request);

            using (var res = await SendAsync(httpRequest).ForAwait())
            {
                return(await ProcessEntityResponseAsync(request, res).ForAwait());
            }
        }
Ejemplo n.º 4
0
 protected virtual HttpRequest CreateHttpRequest <T>(DeleteEntityRequest <T> request) where T : class
 {
     return(DeleteHttpRequestFactory.Create(request));
 }
Ejemplo n.º 5
0
 protected virtual HttpRequest CreateHttpRequest(DeleteDatabaseRequest request)
 {
     return(DeleteHttpRequestFactory.Create(request));
 }