public static IAsyncResult BeginGetOutboundMessageDetail(this PostmarkClient client, string messageID) { return(client.GetOutboundMessageDetailsAsync(messageID)); }
public static OutboundMessageDetail GetOutboundMessageDetail(this PostmarkClient client, string messageID) { return(Task.Run(async() => await client.GetOutboundMessageDetailsAsync(messageID)).Result); }
public static OutboundMessageDetail GetOutboundMessageDetail(this PostmarkClient client, string messageID) { return(client.GetOutboundMessageDetailsAsync(messageID).WaitForResult()); }