Пример #1
0
        public Task <SecurityGrantApiKeyResponse> GrantApiKeyAsync(Action <SecurityGrantApiKeyRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityGrantApiKeyRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityGrantApiKeyRequestDescriptor, SecurityGrantApiKeyResponse>(descriptor));
        }
Пример #2
0
        public SecurityGrantApiKeyResponse GrantApiKey(Action <SecurityGrantApiKeyRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityGrantApiKeyRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityGrantApiKeyRequestDescriptor, SecurityGrantApiKeyResponse>(descriptor));
        }