public async Task <IActionResult> SendMessage(string clientId, string message) { var deliveryservice = new DeliveryMessage(clientId, message); await deliveryservice.SendMessageAsync(clientId, message, default(CancellationToken)); return(Ok()); }
public void TestSpamMessage() { _service.SendMessageAsync("148460428", "test spam message", default(CancellationToken)).Wait(); }