-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathICommandHandlerModule.cs
More file actions
69 lines (63 loc) · 2.65 KB
/
ICommandHandlerModule.cs
File metadata and controls
69 lines (63 loc) · 2.65 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
// =================================================================================================================================
// 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.Command
{
/// <summary>
/// Encapsulates container configuration for command handlers.
/// </summary>
/// <typeparam name="TConfigurator">
/// The type of the object that configures containers.
/// </typeparam>
/// <typeparam name="TBaseCommandHandler">
/// The base class or implemented interface type that is shared by all command handler types that are registered by the module.
/// </typeparam>
public interface ICommandHandlerModule<TConfigurator, TBaseCommandHandler> : ICommandHandlerModule, IDependencyModule<TConfigurator>
where TConfigurator : class, new()
where TBaseCommandHandler : ICommandHandler
{
}
/// <summary>
/// Encapsulates container configuration for command handlers.
/// </summary>
/// <typeparam name="TConfigurator">
/// The type of the object that configures containers.
/// </typeparam>
public interface ICommandHandlerModule<TConfigurator> : ICommandHandlerModule, IDependencyModule<TConfigurator>
where TConfigurator : class, new()
{
}
/// <summary>
/// Encapsulates container configuration for command handlers.
/// </summary>
public interface ICommandHandlerModule : IDependencyModule
{
/// <summary>
/// Gets the base class or implemented interface type that is shared by all command handler types that are registered by the
/// current <see cref="ICommandHandlerModule" />.
/// </summary>
public Type BaseCommandHandlerType
{
get;
}
/// <summary>
/// Gets the collection of non-abstract public class types defined by <see cref="TargetAssembly" /> that are registered by
/// the current <see cref="ICommandHandlerModule" />.
/// </summary>
public IEnumerable<Type> MatchedTypes
{
get;
}
/// <summary>
/// Gets the assembly from which command handler types are registered by the current <see cref="ICommandHandlerModule" />.
/// </summary>
public Assembly TargetAssembly
{
get;
}
}
}