~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/ServiceStack/src/ServiceStack.Interfaces/Messaging/IMessageService.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
 
 
3
namespace ServiceStack.Messaging
 
4
{
 
5
    /// <summary>
 
6
    /// Simple definition of an MQ Host
 
7
    /// </summary>
 
8
        public interface IMessageService
 
9
                : IDisposable
 
10
        {
 
11
                /// <summary>
 
12
                /// Factory to create consumers and producers that work with this service
 
13
                /// </summary>
 
14
                IMessageFactory MessageFactory { get; }
 
15
 
 
16
        /// <summary>
 
17
        /// Register DTOs and hanlders the MQ Host will process
 
18
        /// </summary>
 
19
        /// <typeparam name="T"></typeparam>
 
20
        /// <param name="processMessageFn"></param>
 
21
                void RegisterHandler<T>(Func<IMessage<T>, object> processMessageFn);
 
22
 
 
23
        /// <summary>
 
24
        /// Register DTOs and hanlders the MQ Host will process
 
25
        /// </summary>
 
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);
 
30
 
 
31
        /// <summary>
 
32
        /// Get Total Current Stats for all Message Handlers
 
33
        /// </summary>
 
34
        /// <returns></returns>
 
35
        IMessageHandlerStats GetStats();
 
36
 
 
37
        /// <summary>
 
38
        /// Get the status of the service. Potential Statuses: Disposed, Stopped, Stopping, Starting, Started
 
39
        /// </summary>
 
40
        /// <returns></returns>
 
41
        string GetStatus();
 
42
 
 
43
        /// <summary>
 
44
        /// Get a Stats dump
 
45
        /// </summary>
 
46
        /// <returns></returns>
 
47
        string GetStatsDescription();
 
48
 
 
49
        /// <summary>
 
50
        /// Start the MQ Host if not already started.
 
51
        /// </summary>
 
52
                void Start();
 
53
 
 
54
        /// <summary>
 
55
        /// Stop the MQ Host if not already stopped. 
 
56
        /// </summary>
 
57
        void Stop();
 
58
        }
 
59
 
 
60
}
 
 
b'\\ No newline at end of file'