Ejemplo n.º 1
0
        public override async Task <StatusReply> GetStatus(AccountId request, ServerCallContext context)
        {
            var query = new GetAccountStatusQuery(request.ToAccountId());
            var data  = await _mediator.Send(query);

            return(new StatusReply
            {
                IsActive = data.IsActive
            });
        }
Ejemplo n.º 2
0
        public override async Task <Confirming> ResendSignUpConfirmation(AccountId request, ServerCallContext context)
        {
            var command        = new ResendSignUpConfirmationCommand(request.ToAccountId(), _language);
            var confirmationId = await _mediator.Send(command, context.CancellationToken);

            return(new Confirming
            {
                Id = confirmationId.ToString()
            });
        }