public static bool Send(this IWebexTeamsMessageSender webexTeamsMessageSender, string webhookUri, string payload) { return(webexTeamsMessageSender.SendAsync(webhookUri, payload).GetAwaiter().GetResult()); }
public static async Task <bool> SendAsync(this IWebexTeamsMessageSender webexTeamsMessageSender, string webhookUri, WebexTeamsMessage message) { return(await webexTeamsMessageSender.SendAsync(webhookUri, message.ToString())); }