@ -3,293 +3,293 @@
namespace ZeroLevel.Patterns.DependencyInjection
namespace ZeroLevel.Patterns.DependencyInjection
{
{
/// <summary>
/// <summary>
/// Интерфейс с методами регистрации зависимостей с указанием типов контракта и зависимости
/// Methods for register contact resolvings
/// ( синглтоны и мультитоны )
/// ( singletones and multitones )
/// </summary>
/// </summary>
public interface IContainerRegister : IDisposable
public interface IContainerRegister : IDisposable
{
{
#region Register
#region Register
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
void Register < TContract , TImplementation > ( ) ;
void Register < TContract , TImplementation > ( ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
void Register < TContract , TImplementation > ( string resolveName ) ;
void Register < TContract , TImplementation > ( string resolveName ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
void Register < TContract , TImplementation > ( bool shared ) ;
void Register < TContract , TImplementation > ( bool shared ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
void Register < TContract , TImplementation > ( string resolveName , bool shared ) ;
void Register < TContract , TImplementation > ( string resolveName , bool shared ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
void Register ( Type contractType , Type implementationType ) ;
void Register ( Type contractType , Type implementationType ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
void Register ( Type contractType , Type implementationType , string resolveName ) ;
void Register ( Type contractType , Type implementationType , string resolveName ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
void Register ( Type contractType , Type implementationType , bool shared ) ;
void Register ( Type contractType , Type implementationType , bool shared ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости
/// Dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
void Register ( Type contractType , Type implementationType , string resolveName , bool shared ) ;
void Register ( Type contractType , Type implementationType , string resolveName , bool shared ) ;
# endregion
# endregion
#region Register with parameters
#region Register with parameters
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister < TContract , TImplementation > ( object [ ] constructorParameters ) ;
void ParameterizedRegister < TContract , TImplementation > ( object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister < TContract , TImplementation > ( string resolveName , object [ ] constructorParameters ) ;
void ParameterizedRegister < TContract , TImplementation > ( string resolveName , object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister < TContract , TImplementation > ( bool shared , object [ ] constructorParameters ) ;
void ParameterizedRegister < TContract , TImplementation > ( bool shared , object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister < TContract , TImplementation > ( string resolveName , bool shared , object [ ] constructorParameters ) ;
void ParameterizedRegister < TContract , TImplementation > ( string resolveName , bool shared , object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister ( Type contractType , Type implementationType , object [ ] constructorParameters ) ;
void ParameterizedRegister ( Type contractType , Type implementationType , object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister ( Type contractType , Type implementationType , string resolveName , object [ ] constructorParameters ) ;
void ParameterizedRegister ( Type contractType , Type implementationType , string resolveName , object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister ( Type contractType , Type implementationType , bool shared , object [ ] constructorParameters ) ;
void ParameterizedRegister ( Type contractType , Type implementationType , bool shared , object [ ] constructorParameters ) ;
/// <summary>
/// <summary>
/// Регистрация разрешения зависимости с указанием параметров конструктора
/// Dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
void ParameterizedRegister ( Type contractType , Type implementationType , string resolveName , bool shared , object [ ] constructorParameters ) ;
void ParameterizedRegister ( Type contractType , Type implementationType , string resolveName , bool shared , object [ ] constructorParameters ) ;
# endregion
# endregion
#region Safe register
#region Safe register
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister < TContract , TImplementation > ( Action < Exception > fallback = null ) ;
bool TryRegister < TContract , TImplementation > ( Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister < TContract , TImplementation > ( string resolveName , Action < Exception > fallback = null ) ;
bool TryRegister < TContract , TImplementation > ( string resolveName , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister < TContract , TImplementation > ( bool shared , Action < Exception > fallback = null ) ;
bool TryRegister < TContract , TImplementation > ( bool shared , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister < TContract , TImplementation > ( string resolveName , bool shared , Action < Exception > fallback = null ) ;
bool TryRegister < TContract , TImplementation > ( string resolveName , bool shared , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister ( Type contractType , Type implementationType , Action < Exception > fallback = null ) ;
bool TryRegister ( Type contractType , Type implementationType , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister ( Type contractType , Type implementationType , string resolveName , Action < Exception > fallback = null ) ;
bool TryRegister ( Type contractType , Type implementationType , string resolveName , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister ( Type contractType , Type implementationType , bool shared , Action < Exception > fallback = null ) ;
bool TryRegister ( Type contractType , Type implementationType , bool shared , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости
/// Safe dependency resolution registration
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryRegister ( Type contractType , Type implementationType , string resolveName , bool shared , Action < Exception > fallback = null ) ;
bool TryRegister ( Type contractType , Type implementationType , string resolveName , bool shared , Action < Exception > fallback = null ) ;
# endregion
# endregion
#region Safe register with parameters
#region Safe register with parameters
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister < TContract , TImplementation > ( object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister < TContract , TImplementation > ( object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister < TContract , TImplementation > ( string resolveName , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister < TContract , TImplementation > ( string resolveName , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister < TContract , TImplementation > ( bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister < TContract , TImplementation > ( bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <typeparam name="TContract"> Тип контракта </typeparam>
/// <typeparam name="TContract"> Contract </typeparam>
/// <typeparam name="TImplementation"> Тип разрешения </typeparam>
/// <typeparam name="TImplementation"> Dependency resolution </typeparam>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister < TContract , TImplementation > ( string resolveName , bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister < TContract , TImplementation > ( string resolveName , bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister ( Type contractType , Type implementationType , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister ( Type contractType , Type implementationType , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister ( Type contractType , Type implementationType , string resolveName , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister ( Type contractType , Type implementationType , string resolveName , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister ( Type contractType , Type implementationType , bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister ( Type contractType , Type implementationType , bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
/// <summary>
/// <summary>
/// Безопасная регистрация разрешения зависимости с указанием параметров конструктора
/// Safe dependency resolution registration with constructor parameters
/// </summary>
/// </summary>
/// <param name="contractType"> Тип контракта </param>
/// <param name="contractType"> Contract </param>
/// <param name="implementationType"> Тип разрешения </param>
/// <param name="implementationType"> Dependency resolution </param>
/// <param name="resolveName"> Имя разрешения зависимости </param>
/// <param name="resolveName"> Dependency name </param>
/// <param name="shared">true - для синглтонов </param>
/// <param name="shared">true - for singletone </param>
/// <param name="constructorParameters"> Аргументы конструктора </param>
/// <param name="constructorParameters"> Ctor args </param>
/// <param name="fallback"> Обработчик исключения </param>
/// <param name="fallback"> Error handler </param>
/// <returns>true - в случае успешной регистрации </returns>
/// <returns>true - registration successfully completed </returns>
bool TryParameterizedRegister ( Type contractType , Type implementationType , string resolveName , bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
bool TryParameterizedRegister ( Type contractType , Type implementationType , string resolveName , bool shared , object [ ] constructorParameters , Action < Exception > fallback = null ) ;
# endregion
# endregion
}
}