How to inject only one object to constructor using Unity DI. Example:
public class MyClass{
public MyClass(ILog logger, IProvider provider, IResolver resolver, ItemTypeEnum itemType)
{
//.... initializing everything
}
public ItemTypeEnum ItemType { get; set;}
//....methods where I will use this itemKind
}
I want to inject only itemType value to the constructor, to use this itemType in implementation depends of value of this enum.