public static IAsyncResult BeginGetBounce(this PostmarkClient client, string bounceId)
 {
     return(client.GetBounceAsync(int.Parse(bounceId)));
 }
 public static PostmarkBounce GetBounce(this PostmarkClient client, string bounceId)
 {
     return(Task.Run(async() => await client.GetBounceAsync(int.Parse(bounceId))).Result);
 }
Example #3
0
 public static PostmarkBounce GetBounce(this PostmarkClient client, string bounceId)
 {
     return(client.GetBounceAsync(int.Parse(bounceId)).WaitForResult());
 }