public virtual async Task <GenerateApiKeyResponse> GenerateApiKey(GenerateApiKeyRequest request) { Ensure.That(request, "request").IsNotNull(); var httpRequest = GenerateApiKeyHttpRequestFactory.Create(request); using (var res = await SendAsync(httpRequest).ForAwait()) { return(await GenerateApiKeyResponseFactory.CreateAsync(res).ForAwait()); } }
protected virtual HttpRequest CreateHttpRequest(GenerateApiKeyRequest request) { return(GenerateApiKeyHttpRequestFactory.Create(request)); }