public void SendMessageTest() { CreateMessageTest(); var result = client.BroadcastMessageAsync(message, NotificationTypes.Regular).Result; Trace.WriteLine($"Broadcast Id: {result.Id}"); }
public async Task <BroadcastResult> BroadcastMessageAsync(BroadcastMessageResult message, NotificationTypes notification) { try { return(await broadcastClient.BroadcastMessageAsync(message, notification)); } catch (Exception e) { Logger.LogError(e, e.Message); return(BaseResult.CreateFailed <BroadcastResult>()); } }