29 lines
757 B
C#
29 lines
757 B
C#
|
namespace ModuleTools.Interfaces
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Интерфейс установки зависмости между элементами
|
|||
|
/// </summary>
|
|||
|
public interface IDependencyManager
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Добавление зависимости
|
|||
|
/// </summary>
|
|||
|
/// <typeparam name="T"></typeparam>
|
|||
|
/// <typeparam name="U"></typeparam>
|
|||
|
void RegisterType<T, U>() where U : T;
|
|||
|
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Добавление зависимости
|
|||
|
/// </summary>
|
|||
|
/// <typeparam name="T"></typeparam>
|
|||
|
void RegisterType<T>();
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Получение класса со всеми зависмостями
|
|||
|
/// </summary>
|
|||
|
/// <typeparam name="T"></typeparam>
|
|||
|
/// <returns></returns>
|
|||
|
T Resolve<T>();
|
|||
|
}
|
|||
|
}
|