public virtual async Task <DatabaseHeaderResponse> HeadAsync(HeadDatabaseRequest request) { var httpRequest = HeadHttpRequestFactory.Create(request); using (var httpResponse = await SendAsync(httpRequest).ForAwait()) return(await DatabaseHeaderResponseFactory.CreateAsync(request, httpResponse).ForAwait()); }
public virtual async Task <DatabaseHeaderResponse> HeadAsync(CancellationToken cancellationToken = default) { var request = new HeadDatabaseRequest(Connection.DbName); var httpRequest = HeadHttpRequestFactory.Create(request); using (var httpResponse = await SendAsync(httpRequest, cancellationToken).ForAwait()) return(await DatabaseHeaderResponseFactory.CreateAsync(request, httpResponse).ForAwait()); }
protected virtual HttpRequest CreateHttpRequest(HeadDatabaseRequest request) { return(HeadHttpRequestFactory.Create(request)); }