public static PostmarkInboundMessageList GetInboundMessages(this PostmarkClient client,
                                                             string recipient, string fromemail, string subject, string mailboxhash, int count, int offset)
 {
     return(Task.Run(async() => await client.GetInboundMessagesAsync(offset, count, recipient, fromemail, subject, mailboxhash)).Result);
 }
 public static PostmarkInboundMessageList GetInboundMessages(this PostmarkClient client,
                                                             string fromemail, int count, int offset)
 {
     return(Task.Run(async() => await client.GetInboundMessagesAsync(offset, count, fromemail: fromemail)).Result);
 }
 public static IAsyncResult BeginGetInboundMessages
     (this PostmarkClient client, string recipient, string fromemail,
     string subject, string mailboxhash, int count, int offset)
 {
     return(client.GetInboundMessagesAsync(offset, count, recipient, fromemail, subject, mailboxhash));
 }
 public static IAsyncResult BeginGetInboundMessages
     (this PostmarkClient client, string fromemail, int count, int offset)
 {
     return(client.GetInboundMessagesAsync(offset, count, fromemail: fromemail));
 }
Example #5
0
 public static PostmarkInboundMessageList GetInboundMessages(this PostmarkClient client,
                                                             string recipient, string fromemail, string subject, string mailboxhash, int count, int offset)
 {
     return(client.GetInboundMessagesAsync(offset, count, recipient, fromemail, subject, mailboxhash).WaitForResult());
 }
Example #6
0
 public static PostmarkInboundMessageList GetInboundMessages(this PostmarkClient client,
                                                             string fromemail, int count, int offset)
 {
     return(client.GetInboundMessagesAsync(offset, count, fromemail: fromemail).WaitForResult());
 }