public static IAsyncResult BeginSendMessages(this PostmarkClient client, params PostmarkMessage[] messages) { return(client.SendMessagesAsync(messages)); }
public static IAsyncResult BeginSendMessages(this PostmarkClient client, IEnumerable <PostmarkMessage> messages) { return(client.SendMessagesAsync(messages)); }
public static IEnumerable <PostmarkResponse> SendMessages(this PostmarkClient client, IEnumerable <PostmarkMessage> messages) { return(Task.Run(async() => await client.SendMessagesAsync(messages)).Result); }
public static IEnumerable <PostmarkResponse> SendMessages(this PostmarkClient client, IEnumerable <PostmarkMessage> messages) { return(client.SendMessagesAsync(messages).WaitForResult()); }