コード例 #1
0
        public async Task <IActionResult> PostSMS([FromBody] SendSMSRequest request, CancellationToken cancellationToken)
        {
            Logger.LogInformation(JsonConvert.SerializeObject(request));

            SendSMSCommand command = SendSMSCommand.Create(request);

            await this.CommandRouter.Route(command, cancellationToken);

            return(this.Ok(command.Response));
        }
コード例 #2
0
 public static SendSMSCommand GetSendSmsCommand()
 {
     return(SendSMSCommand.Create(GetSendSmsRequest()));
 }