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()); }
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()); }
protected virtual HttpRequest CreateHttpRequest(CompactDatabaseRequest request) { return(CompactHttpRequestFactory.Create(request)); }