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