forked from hibernating-rhinos/rhino-esb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITransport.cs
43 lines (28 loc) · 1.43 KB
/
ITransport.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
36
37
38
39
40
41
42
43
using System;
using Rhino.ServiceBus.Impl;
namespace Rhino.ServiceBus.Internal
{
public interface ITransport : IDisposable
{
void Start();
Endpoint Endpoint { get; }
int ThreadCount { get; }
/// <summary>
/// The information for the message currently being received and handled by the transport.
/// </summary>
CurrentMessageInformation CurrentMessageInformation { get; }
void Send(Endpoint destination, object[] msgs);
void Send(Endpoint endpoint, DateTime processAgainAt, object[] msgs);
void Reply(params object[] messages);
event Action<CurrentMessageInformation> MessageSent;
event Func<CurrentMessageInformation,bool> AdministrativeMessageArrived;
event Func<CurrentMessageInformation, bool> MessageArrived;
event Action<CurrentMessageInformation, Exception> MessageSerializationException;
event Action<CurrentMessageInformation, Exception> MessageProcessingFailure;
event Action<CurrentMessageInformation, Exception> MessageProcessingCompleted;
event Action<CurrentMessageInformation> BeforeMessageTransactionRollback;
event Action<CurrentMessageInformation> BeforeMessageTransactionCommit;
event Action<CurrentMessageInformation, Exception> AdministrativeMessageProcessingCompleted;
event Action Started;
}
}