-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIMessageHandlerModule.cs
More file actions
126 lines (112 loc) · 4.3 KB
/
IMessageHandlerModule.cs
File metadata and controls
126 lines (112 loc) · 4.3 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.InversionOfControl;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace RapidField.SolidInstruments.Messaging
{
/// <summary>
/// Encapsulates container configuration for message handlers.
/// </summary>
/// <typeparam name="TConfigurator">
/// The type of the object that configures containers.
/// </typeparam>
public interface IMessageHandlerModule<TConfigurator> : IMessageHandlerModule
where TConfigurator : class, new()
{
}
/// <summary>
/// Encapsulates container configuration for message handlers.
/// </summary>
public interface IMessageHandlerModule : IDependencyModule
{
/// <summary>
/// Gets the collection of non-abstract public command message listener types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> CommandMessageListenerTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public command message transmitter types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> CommandMessageTransmitterTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public event message listener types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> EventMessageListenerTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public event message transmitter types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> EventMessageTransmitterTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public message handler types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> MessageHandlerTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public message listener types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> MessageListenerTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public message transmitter types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> MessageTransmitterTypes
{
get;
}
/// <summary>
/// Gets a value indicating whether or not the current <see cref="IMessageHandlerModule" /> registers message listener types
/// defined by <see cref="TargetAssembly" />.
/// </summary>
public Boolean RegistersMessageListenerTypes
{
get;
}
/// <summary>
/// Gets a value indicating whether or not the current <see cref="IMessageHandlerModule" /> registers message transmitter
/// types defined by <see cref="TargetAssembly" />.
/// </summary>
public Boolean RegistersMessageTransmitterTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public request message listener types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> RequestMessageListenerTypes
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public request message transmitter types defined by <see cref="TargetAssembly" />.
/// </summary>
public IEnumerable<Type> RequestMessageTransmitterTypes
{
get;
}
/// <summary>
/// Gets the assembly from which message types are identified for handler registration.
/// </summary>
public Assembly TargetAssembly
{
get;
}
}
}