-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIServiceInjector.cs
More file actions
34 lines (32 loc) · 1.54 KB
/
IServiceInjector.cs
File metadata and controls
34 lines (32 loc) · 1.54 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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
namespace RapidField.SolidInstruments.InversionOfControl
{
/// <summary>
/// Facilitates injection of a collection of service descriptors into a
/// <see cref="DependencyContainer{TContainer, TConfigurator}" /> configurator.
/// </summary>
/// <typeparam name="TConfigurator">
/// The type of the object that configures a container.
/// </typeparam>
public interface IServiceInjector<TConfigurator>
where TConfigurator : class, new()
{
/// <summary>
/// Adds a collection of service descriptors to a <see cref="DependencyContainer{TContainer, TConfigurator}" />
/// configurator.
/// </summary>
/// <param name="configurator">
/// The object that configures a container.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="configurator" /> is <see langword="null" />.
/// </exception>
/// <exception cref="ContainerConfigurationException">
/// An exception was raised while injecting the service descriptors.
/// </exception>
public void Inject(TConfigurator configurator);
}
}