Exemple #1
0
        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());
        }
Exemple #2
0
        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());
        }
Exemple #3
0
 protected virtual HttpRequest CreateHttpRequest(HeadDatabaseRequest request)
 {
     return(HeadHttpRequestFactory.Create(request));
 }