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/ICompositionProvider.cs

23 lines
1.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

namespace ZeroLevel.Patterns.DependencyInjection
{
/// <summary>
/// Интерфейс с методами проведения композиций
/// </summary>
public interface ICompositionProvider
{
#region Composition
/// <summary>
/// Композиция, выполняет подстановку зарегистрированных контрактов в полях и свойствах объекта
/// </summary>
/// <param name="instanse">Инстанс объекта</param>
void Compose(object instanse, bool recursive = true);
/// <summary>
/// Безопасная композиция, выполняет подстановку зарегистрированных контрактов в полях и свойствах объекта
/// </summary>
/// <param name="instanse">Инстанс объекта</param>
/// /// <returns>false - при сбое в попытке композиции объекта</returns>
bool TryCompose(object instanse, bool recursive = true);
#endregion
}
}

Powered by TurnKey Linux.