You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/DependencyInjection/Contracts/IContainerInstanceRegister.cs

46 lines
1.6 KiB

6 years ago
using System;
5 years ago
namespace ZeroLevel.DependencyInjection
6 years ago
{
/// <summary>
/// Methods for register contact implementations
/// (singletone)
6 years ago
/// </summary>
public interface IContainerInstanceRegister
{
#region Register instance
6 years ago
/// <summary>
/// Register instance for contract <typeparamref name="TContract"/>. (singletone)
6 years ago
/// </summary>
/// <typeparam name="TContract">Contract</typeparam>
/// <param name="implementation">Instance</param>
6 years ago
void Register<TContract>(TContract implementation);
6 years ago
/// <summary>
/// Register instance for contract <typeparamref name="TContract"/>. (singletone)
6 years ago
/// </summary>
/// <typeparam name="TContract">Contract</typeparam>
/// <param name="implementation">Instance</param>
/// <param name="resolveName">Dependency name</param>
6 years ago
void Register<TContract>(TContract implementation, string resolveName);
6 years ago
/// <summary>
/// Register instance for contract (singletone)
6 years ago
/// </summary>
/// <param name="contractType">Contract</param>
/// <param name="implementation">Instance</param>
6 years ago
void Register(Type contractType, object implementation);
6 years ago
/// <summary>
/// Register instance for contract (singletone)
6 years ago
/// </summary>
/// <param name="contractType">Contract</param>
/// <param name="resolveName">Dependency name</param>
/// <param name="implementation">Instance</param>
6 years ago
void Register(Type contractType, string resolveName, object implementation);
#endregion Register instance
6 years ago
}
}

Powered by TurnKey Linux.