public async void ClientCanRetrieveBounces()
        {
            var client  = new PostmarkClient(WRITE_TEST_SERVER_TOKEN);
            var bounces = await client.GetBouncesAsync();

            Assert.NotNull(bounces);
        }
 public static IAsyncResult BeginGetBounces(this PostmarkClient client,
                                            bool?inactive, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, inactive: inactive));
 }
 public static IAsyncResult BeginGetBounces(this PostmarkClient client, PostmarkBounceType type, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, type));
 }
 public static IAsyncResult BeginGetBounces(this PostmarkClient client, bool?inactive,
                                            string emailFilter, string tag, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, null, inactive, emailFilter, tag));
 }
 public static PostmarkBounces GetBounces(this PostmarkClient client,
                                          bool?inactive, string emailFilter, int offset, int count)
 {
     return(Task.Run(async() => await client.GetBouncesAsync(offset, count,
                                                             inactive: inactive, emailFilter: emailFilter)).Result);
 }
 public static PostmarkBounces GetBounces(this PostmarkClient client,
                                          string emailFilter, string tag, int offset, int count)
 {
     return(Task.Run(async() => await client.GetBouncesAsync(offset, count, emailFilter: emailFilter, tag: tag)).Result);
 }
 public static PostmarkBounces GetBounces
     (this PostmarkClient client, PostmarkBounceType type, bool?inactive, int offset, int count)
 {
     return(Task.Run(async() => await client.GetBouncesAsync(offset, count, type, inactive)).Result);
 }
 public static PostmarkBounces GetBounces(this PostmarkClient client, int offset, int count)
 {
     return(Task.Run(async() => await client.GetBouncesAsync(offset, count)).Result);
 }
 public static IAsyncResult BeginGetBounces(this PostmarkClient client,
                                            PostmarkBounceType type, bool?inactive, string emailFilter, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, type, inactive, emailFilter));
 }
 public static IAsyncResult BeginGetBounces(this PostmarkClient client,
                                            PostmarkBounceType type, string emailFilter, string tag, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, type, emailFilter: emailFilter, tag: tag));
 }
 public static IAsyncResult BeginGetBounces(this PostmarkClient client, string emailFilter, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, emailFilter: emailFilter));
 }
Ejemplo n.º 12
0
 public static PostmarkBounces GetBounces(this PostmarkClient client,
                                          bool?inactive, string emailFilter, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count,
                                   inactive: inactive, emailFilter: emailFilter).WaitForResult());
 }
Ejemplo n.º 13
0
 public static PostmarkBounces GetBounces(this PostmarkClient client,
                                          string emailFilter, string tag, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, emailFilter: emailFilter, tag: tag).WaitForResult());
 }
Ejemplo n.º 14
0
 public static PostmarkBounces GetBounces
     (this PostmarkClient client, PostmarkBounceType type, bool?inactive, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count, type, inactive).WaitForResult());
 }
Ejemplo n.º 15
0
 public static PostmarkBounces GetBounces(this PostmarkClient client, int offset, int count)
 {
     return(client.GetBouncesAsync(offset, count).WaitForResult());
 }