コード例 #1
0
        public void Handle(ITodoCommand message)
        {
            var logger = Context.GetLogger();
            var child  = CreateIfNotExist(new BaseIdentity(message.UUID), "Todo");

            child.Forward(message);
            logger.Info($"Message {message.GetType().Name} is forwarded to agrgate");
        }
コード例 #2
0
 public MagicGenericController(
     ICrudCommand <TodoObject> crudTodoCommand,
     ITodoCommand todoCommand,
     ISubTodoCommand subTodoCommand
     )
 {
     _crudTodoCommand = crudTodoCommand;
     _todoCommand     = todoCommand;
     _subTodoCommand  = subTodoCommand;
     _todo            = new TodoObject();
 }