Exemple #1
0
        public override async Task <VerificationReply> SendMessage(VerificationRequest request, ServerCallContext context)
        {
            var task = Task.Run(() => {
                _verificationService.AddVerification(new VerificationDTO()
                {
                    Code = request.Code, BizCode = BizCode.Register, To = request.To
                });
            });
            await task;

            return(new VerificationReply()
            {
                Ok = true
            });
        }
Exemple #2
0
 public void Post([FromBody] VerificationDTO model)
 {
     _verificationAppService.AddVerification(model);
 }