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