Example #1
0
        public virtual async Task <DatabaseHeaderResponse> CompactAsync(CompactDatabaseRequest request)
        {
            var httpRequest = CompactHttpRequestFactory.Create(request);

            using (var httpResponse = await SendAsync(httpRequest).ForAwait())
                return(await DatabaseHeaderResponseFactory.CreateAsync(request, httpResponse).ForAwait());
        }
Example #2
0
        public virtual async Task <DatabaseHeaderResponse> CompactAsync(CancellationToken cancellationToken = default)
        {
            var request     = new CompactDatabaseRequest(Connection.DbName);
            var httpRequest = CompactHttpRequestFactory.Create(request);

            using (var httpResponse = await SendAsync(httpRequest, cancellationToken).ForAwait())
                return(await DatabaseHeaderResponseFactory.CreateAsync(request, httpResponse).ForAwait());
        }
Example #3
0
 protected virtual HttpRequest CreateHttpRequest(CompactDatabaseRequest request)
 {
     return(CompactHttpRequestFactory.Create(request));
 }