diff options
author | trailmax <trailmax1@gmail.com> | 2014-06-05 22:36:46 +0100 |
---|---|---|
committer | trailmax <trailmax1@gmail.com> | 2014-06-05 22:36:46 +0100 |
commit | cc2a9f2b1c6cda18f41781b6e716c26a1d76ed5f (patch) | |
tree | c16990d9552824d4095782a312a99b6bd2196629 /SendGrid | |
parent | b6c7d1c6e3a907c56e4e783cda4e619d33a1766a (diff) | |
download | sendgrid-csharp-cc2a9f2b1c6cda18f41781b6e716c26a1d76ed5f.zip sendgrid-csharp-cc2a9f2b1c6cda18f41781b6e716c26a1d76ed5f.tar.gz sendgrid-csharp-cc2a9f2b1c6cda18f41781b6e716c26a1d76ed5f.tar.bz2 |
Adding DeliverAsync method to ITransport interface
Diffstat (limited to 'SendGrid')
-rw-r--r-- | SendGrid/SendGridMail/Transport/ITransport.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/SendGrid/SendGridMail/Transport/ITransport.cs b/SendGrid/SendGridMail/Transport/ITransport.cs index 8de134c..26ea635 100644 --- a/SendGrid/SendGridMail/Transport/ITransport.cs +++ b/SendGrid/SendGridMail/Transport/ITransport.cs @@ -1,4 +1,7 @@ -namespace SendGrid
+using System.Threading.Tasks;
+
+
+namespace SendGrid
{
/// <summary>
/// Encapsulates the transport mechanism so that it can be used in a generic way,
@@ -11,5 +14,12 @@ /// </summary>
/// <param name="message">the message to be delivered</param>
void Deliver(ISendGrid message);
+
+
+ /// <summary>
+ /// Asynchronously delivers a message using the protocol of the derived class
+ /// </summary>
+ /// <param name="message">the message to be delivered</param>
+ Task DeliverAsync(ISendGrid message);
}
}
\ No newline at end of file |