blob: 5266e0217978358d8d508a34afc541364d6e5c97 (
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
26
27
28
29
30
31
32
33
34
35
36
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.Transport
{
/// <summary>
/// Represents a transport component.
/// </summary>
public interface ITransportComponent : IDisposable
{
/// <summary>
/// Connects the transport component.
/// </summary>
/// <returns></returns>
Task Connect();
/// <summary>
/// Disconnects the transport component.
/// </summary>
/// <returns></returns>
Task Disconnect();
/// <summary>
/// Occurs when component state changes.
/// </summary>
event EventHandler<TransportComponentState> StateChanged;
/// <summary>
/// Gets the component state.
/// </summary>
TransportComponentState State { get; }
}
}
|