private LoadAggregateRoot ( string fullTypeName ) : AggregateRoot | ||
fullTypeName | string | |
return | AggregateRoot |
private AggregateRoot LoadAggregateRoot(string fullTypeName)
{
if(_aggregateRoot == null)
{
_aggregateRoot = (AggregateRoot)Activator.CreateInstance(Type.GetType(fullTypeName, true));
}
return _aggregateRoot;
}