コード例 #1
0
        public async Task <IActionResult> SendMessage(string clientId, string message)
        {
            var deliveryservice = new DeliveryMessage(clientId, message);
            await deliveryservice.SendMessageAsync(clientId, message, default(CancellationToken));

            return(Ok());
        }
コード例 #2
0
 public void TestSpamMessage()
 {
     _service.SendMessageAsync("148460428", "test spam message", default(CancellationToken)).Wait();
 }