-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDependencyContainerConfiguration.cs
More file actions
35 lines (32 loc) · 1.4 KB
/
DependencyContainerConfiguration.cs
File metadata and controls
35 lines (32 loc) · 1.4 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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Core;
namespace RapidField.SolidInstruments.InversionOfControl
{
/// <summary>
/// Represents configuration information for a <see cref="DependencyContainer{TContainer, TConfigurator}" /> instance.
/// </summary>
/// <typeparam name="TConfigurator">
/// The type of the object that configures an associated container.
/// </typeparam>
public sealed class DependencyContainerConfiguration<TConfigurator> : InstrumentConfiguration
where TConfigurator : class, new()
{
/// <summary>
/// Initializes a new instance of the <see cref="DependencyContainerConfiguration{TConfigurator}" /> class.
/// </summary>
public DependencyContainerConfiguration()
: base()
{
Configurator = new TConfigurator();
}
/// <summary>
/// Gets an object that configures the associated container.
/// </summary>
public TConfigurator Configurator
{
get;
}
}
}