public async void ClientProducesDeliveryStats()
        {
            var client = new PostmarkClient(WRITE_TEST_SERVER_TOKEN);
            var stats  = await client.GetDeliveryStatsAsync();

            Assert.True(stats.Bounces.Any());
        }
 public static IAsyncResult BeginGetDeliveryStats(this PostmarkClient client)
 {
     return(client.GetDeliveryStatsAsync());
 }
 public static PostmarkDeliveryStats GetDeliveryStats(this PostmarkClient client)
 {
     return(Task.Run(async() => await client.GetDeliveryStatsAsync()).Result);
 }
Пример #4
0
 public static PostmarkDeliveryStats GetDeliveryStats(this PostmarkClient client)
 {
     return(client.GetDeliveryStatsAsync().WaitForResult());
 }