Здравствуйте,
как вы боритесь с тем, что в методы entity, через параметры, в Domain слой протягиваютя классы из других слоев?
internal class Entity : BaseDomainClass<RootAggregate>
{
internal Entity(RootAggregate root, int id)
{
this.root = root;
this.id = id;
}
internal void DoCool(string value, Ac.System system, ILogger logger, IDateTimeProvider, INumberProvider)
{
// domain logic
...
if(...)
{
var data = system.GetData(...);
logger.Log(...);
}
// domain logic
...
}
}
и в каком-то менеджере:
rootAgreagete.Do("xxx","yyy", this.system1, this.system2, this.system3, this.logger, this.provider1, this.provider2, ....);