3
namespace ServiceStack.Messaging
6
/// Simple definition of an MQ Host
8
public interface IMessageService
12
/// Factory to create consumers and producers that work with this service
14
IMessageFactory MessageFactory { get; }
17
/// Register DTOs and hanlders the MQ Host will process
19
/// <typeparam name="T"></typeparam>
20
/// <param name="processMessageFn"></param>
21
void RegisterHandler<T>(Func<IMessage<T>, object> processMessageFn);
24
/// Register DTOs and hanlders the MQ Host will process
26
/// <typeparam name="T"></typeparam>
27
/// <param name="processMessageFn"></param>
28
/// <param name="processExceptionEx"></param>
29
void RegisterHandler<T>(Func<IMessage<T>, object> processMessageFn, Action<IMessage<T>, Exception> processExceptionEx);
32
/// Get Total Current Stats for all Message Handlers
34
/// <returns></returns>
35
IMessageHandlerStats GetStats();
38
/// Get the status of the service. Potential Statuses: Disposed, Stopped, Stopping, Starting, Started
40
/// <returns></returns>
46
/// <returns></returns>
47
string GetStatsDescription();
50
/// Start the MQ Host if not already started.
55
/// Stop the MQ Host if not already stopped.
b'\\ No newline at end of file'