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);
 }
Exemplo n.º 3
0
 public static PostmarkBounce GetBounce(this PostmarkClient client, string bounceId)
 {
     return(client.GetBounceAsync(int.Parse(bounceId)).WaitForResult());
 }