Example #1
0
        private void Initialize(SimpleLogInputDto log, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <SimpleLog>(() => new SimpleLogCommandRepository());

            RootEntity = new SimpleLog
            {
                MessageType = log.MessageType,
                Message     = log.Message
            };

            Enqueue(new InsertEntityCommandOperation <SimpleLog>(RootEntity, dependencies));
        }
Example #2
0
 public SimpleLogCommandAggregate(SimpleLogInputDto log, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(SimpleLogsConnectionClass.GetConnectionName()))
 {
     Initialize(log, dependencies);
 }