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)); }
public SecurityCreateApiKeyResponse CreateApiKey(Action <SecurityCreateApiKeyRequestDescriptor> configureRequest = null) { var descriptor = new SecurityCreateApiKeyRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SecurityCreateApiKeyRequestDescriptor, SecurityCreateApiKeyResponse>(descriptor)); }