Похожие чаты

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

in a diff class lib project?

8 ответов

32 просмотра

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.

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта