示例#1
0
        public Task <SecurityGetTokenResponse> GetTokenAsync(Action <SecurityGetTokenRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityGetTokenRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityGetTokenRequestDescriptor, SecurityGetTokenResponse>(descriptor));
        }
示例#2
0
        public SecurityGetTokenResponse GetToken(Action <SecurityGetTokenRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityGetTokenRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityGetTokenRequestDescriptor, SecurityGetTokenResponse>(descriptor));
        }