Clean Architecture: How To Register Services Like A Pro!

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии •

  • @hesamkalhor3263
    @hesamkalhor3263 7 месяцев назад

    Thank you for creating such valuable content! Your videos consistently deliver quality. Keep up the great work!

    • @Foad_Alavi
      @Foad_Alavi  7 месяцев назад

      I appreciate that!

  • @md.redwanhossain6288
    @md.redwanhossain6288 7 месяцев назад +1

    Instead of automapper, try to use Mapster

  • @shakhriyorakhadov8244
    @shakhriyorakhadov8244 7 месяцев назад

    keep going bro 🔥

  • @mohadjermohamed4668
    @mohadjermohamed4668 7 месяцев назад

    Why you travel all assemblies for single class,
    I think you cqn add like a filter to point the needed class

    • @Foad_Alavi
      @Foad_Alavi  7 месяцев назад +1

      I registered the services related to each project in a file, then in all Projects, one file is responsible for service registration, and each project is responsible for registering its services.
      It will help me in the future to find the place where I registered my services or the place where I want to register my services for each of my projects
      And if I didn’t answer to your question, please elaborate a bit more about the question

    • @mohadjermohamed4668
      @mohadjermohamed4668 7 месяцев назад

      @@Foad_Alavi your code will look for any class exist in the project .
      Why you didn’t use filters to filter the specific ones.

    • @Foad_Alavi
      @Foad_Alavi  7 месяцев назад

      Of course, you can use attributes for registering them, but soon, we will have some other mapping profile files, and as I explained, clean architecture is all about how to organize the files