Похожие чаты

Btw have you ever loaded assembly explicitely for like views,controllers

in a diff class lib project?

8 ответов

11 просмотров

A lib project won't load these assemblies but instead will get used by them. But yeah, I have split solutions into projects corresponding to various layers, then dividing each per feature, so yes.

Jass- Автор вопроса
A X
A lib project won't load these assemblies but inst...

i was talking about loading them onto the main project as well, i am bit into analysis paralysis lol

Jass
i was talking about loading them onto the main pro...

O yes, the main project ends up being the glue one for me where all the DI setup occurs. So, if a solution is named Xyz, I'll have projects in it named: Xyz (main project) Xyz.Domain Xyz.Api Xyz.Infra.Data Xyz.Infra.Web Domain is business rules. Api is application layer to orchestrate domain objects and initialise them and store them via data interfaces (also defined in domain project). Infra.Data containing all data layer implementation details. Infra.Web containing HTTP or other protocol from where requests come, get validated in the controller, and then passed to the Api handler for subsequent verification and processing. Xyz project is the ASP.NET Core application meanwhile rest are class libraries. All have the same root namespace too: Xyz.

A X
O yes, the main project ends up being the glue one...

If some third party services are to be called, they'd be in another project named Xyz.Infra accordingly.

A X
O yes, the main project ends up being the glue one...

All business specific logging happening in Api project. For this, feature specific logs are sprinkled per feature. All HTTP/gRPC level metrics recorded in Infra.Web project. For this, middleware approach is workable.

Jass- Автор вопроса
A X
O yes, the main project ends up being the glue one...

so you offload controllers to infra web?

Jass- Автор вопроса
A X
O yes, the main project ends up being the glue one...

interesting take , thanks for the info will look into it

Jass
so you offload controllers to infra web?

Yeah. A Route class to handle the particular endpoint and read the "Request" record to pass on to the Controller for the feature which then prepares the Command/Query after validating the Request at a superficial level and passes it onto the API Handler which initialises the domain entities for the feature by fetching them from the data layer via the data interfaces present in the domain project (along with those entities) and those entities return some event value based on the feature which is then pattern matched to create a specific API Result which is a relevant DTO that then gets returned to the Controller which then writes it to the network stream accordingly.

Похожие вопросы

Обсуждают сегодня

Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
здравствуйте. совершаю вот такую вещь: strcpy(line, (char)current_number); где current number — неподписанный шорт, line — массив чаров. ругань следующая: main.c:29:30: error...
Roberto's Ширгозиев
13
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
1
Можно попросить небольшое ревью кода? Тут немнога, я ничего интереснее не придумал, чем написать аналог tree в качестве практики с cmake. https://github.com/hrimov/tree-unix/...
Andrew Hrimov
11
Всем привет. Ребят подскажите пожалуйста. Вопрос по дизасемблировани. Начну с начала. У меня есть скомпилированная программа на ГО (я разработчик) - в ней есть защита лицензии...
Zloy
11
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
isn't utxo commitements pretty close though if someone wanted to get it over the finish line? my understanding is that most of the ground work was already down by verde
Luke High - Rabbi Of Bcash High Rabbi Of Bcash
23
пришел с работы, там тоже гента, ставил одинаково, но дома kernel-dist-bin обновляеться без проблем, на работе ядро при установки не попадает в папку /boot .Приходится вручную...
РDV
13
Карта сайта