Exemplo n.º 1
0
        public Task <SecurityCreateApiKeyResponse> CreateApiKeyAsync(Action <SecurityCreateApiKeyRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityCreateApiKeyRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityCreateApiKeyRequestDescriptor, SecurityCreateApiKeyResponse>(descriptor));
        }
Exemplo n.º 2
0
        public SecurityCreateApiKeyResponse CreateApiKey(Action <SecurityCreateApiKeyRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityCreateApiKeyRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityCreateApiKeyRequestDescriptor, SecurityCreateApiKeyResponse>(descriptor));
        }