コード例 #1
0
        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());
            }
        }
コード例 #2
0
 protected virtual HttpRequest CreateHttpRequest(GenerateApiKeyRequest request)
 {
     return(GenerateApiKeyHttpRequestFactory.Create(request));
 }