-
Notifications
You must be signed in to change notification settings - Fork 652
/
ISatellite.cs
35 lines (31 loc) · 1.08 KB
/
ISatellite.cs
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
namespace NServiceBus.Satellites
{
/// <summary>
/// Implement this interface to create a Satellite.
/// </summary>
public interface ISatellite
{
/// <summary>
/// This method is called when a message is available to be processed.
/// </summary>
/// <param name="message">The <see cref="TransportMessage"/> received.</param>
/// <returns>If <code>false</code> then the message is not commited (rollback).</returns>
bool Handle(TransportMessage message);
/// <summary>
/// The <see cref="Address"/> for this <see cref="ISatellite"/> to use when receiving messages.
/// </summary>
string InputAddress { get; }
/// <summary>
/// Set to <code>true</code> to disable this <see cref="ISatellite"/>.
/// </summary>
bool Disabled { get; }
/// <summary>
/// Starts the <see cref="ISatellite"/>.
/// </summary>
void Start();
/// <summary>
/// Stops the <see cref="ISatellite"/>.
/// </summary>
void Stop();
}
}