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

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

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityAuthenticateRequestDescriptor, SecurityAuthenticateResponse>(descriptor));
        }