summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/Transport/ITransport.cs
blob: 94a2d7f338c804dd99e4dbb9db03c040e818ed6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Threading.Tasks;


namespace SendGrid
{
	/// <summary>
	///     Encapsulates the transport mechanism so that it can be used in a generic way,
	///     regardless of the transport type
	/// </summary>
	public interface ITransport
	{
        /// <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);
	}
}