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"); }
public MagicGenericController( ICrudCommand <TodoObject> crudTodoCommand, ITodoCommand todoCommand, ISubTodoCommand subTodoCommand ) { _crudTodoCommand = crudTodoCommand; _todoCommand = todoCommand; _subTodoCommand = subTodoCommand; _todo = new TodoObject(); }