blob: 26ea635b5a9f9741b8155db870b32df18177ebc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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>
/// Delivers a message using the protocol of the derived class
/// </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);
}
}
|