public static IAsyncResult BeginActivateBounce(this PostmarkClient client, string bounceId)
 {
     return(client.ActivateBounceAsync(int.Parse(bounceId)));
 }
 public static PostmarkBounceActivation ActivateBounce(this PostmarkClient client, string bounceId)
 {
     return(Task.Run(async() => await client.ActivateBounceAsync(int.Parse(bounceId))).Result);
 }
Ejemplo n.º 3
0
 public static PostmarkBounceActivation ActivateBounce(this PostmarkClient client, string bounceId)
 {
     return(client.ActivateBounceAsync(int.Parse(bounceId)).WaitForResult());
 }