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