UnitOfWorkCommandHandlerDecorator in UserAccess Module Doesn't Get Called.
Hello Kamil,
I thought I have figured the project architecture from end to end and decided to try it out on a side project. I am almost sure I followed your example thoroughly and didn't miss out anything. But when I tested it by trying out the RegisterUser endpoint, It returns 200 but the user isn't found at least in the database.
I tried to step through the process and realized that all through the process of the step-through, UnitOfWorkCommandHandlerDecorator and ValidationCommandHandlerDecorator were never called. When this line from CommandsExecutor.cs runs - return await mediator.Send(command); , Dispose() of SqlConnectionFactory.cs gets called next. I don't know why this happens.. At some point, the debug was stuck in between Quartz and SerilogLogProvider. I don't know what I'm missing, and I've been on this for days.
I was hoping you would point me to the right direction because my frustration is building up.
Please help.
Source: kgrzybek/modular-monolith-with-ddd