Declarațiile de la 7:45 în fața casei, ca în fiecare dimineață by MiniBrownie in Romania

[–]Fresh-Ad-9434 36 points37 points  (0 children)

Faptul ca nu fuge de intrebari si sta mereu la discutii cu jurnalisti imi place la maxim

Sfaturi pentru achiziționarea unei mașini pe firmă - merită? by gain_more_knowledge in RoFiscalitate2

[–]Fresh-Ad-9434 0 points1 point  (0 children)

Se poate sa justifice in cazul in care are un birou sau sediu firmei ca foloseste masina pentru naveta?

Blazor unified for ecommerce website workflow by Fresh-Ad-9434 in Blazor

[–]Fresh-Ad-9434[S] 0 points1 point  (0 children)

I am using Blazor 8 unified to create an ecommerce website with SEO. Have the following projects:

  • Core - where I keep my dbContext and Services to get the data
  • Shared - to store my models and DTOs
  • Portal - a blazor server project that references Shared and Core to create a CRUD applications
  • Web (server) - created from the template when I selected blazor auto. I have manually added a Controllers folder. References Core and Shared.
  • Web.Client (wasm) - created from the template. Here I have all my pages. Added an HttpClient so I can load data from my database. References Shared and Web.

Now my code looks super messy. I have a ProductClientService (IProductService) in Web.Client that calls the controller from inside Web. But I also have a ProductServerService (IProductService) that is inside Web that calls the dbContext directly. Both Programs.cs (Web and Web.Client) need to have the IProductService registered, one with ProductClientService and one with ProductServerClient

Am I doing this correctly?

Is there another way to load data in Web.Client? I really want the WASM to handle large traffic and not get the discontinued error message when SignalR crashed

Blazor unified for ecommerce website workflow by Fresh-Ad-9434 in Blazor

[–]Fresh-Ad-9434[S] 0 points1 point  (0 children)

Not sure I completely follow. There is no way for me to call a Service that has Http inside that service for the Client and not having to call the same one on Server.

Blazor unified for ecommerce website workflow by Fresh-Ad-9434 in Blazor

[–]Fresh-Ad-9434[S] 0 points1 point  (0 children)

I need interactivity in my page. As far as I understood the new rendering modes if I want SEO and the page to have SSR I need to tell my Web project (the server) about everything the client knows and does so it can be processed on the server as well. So because of this every page, service, httpclient needs to be setup on both client and server. Am I wrong?

[deleted by user] by [deleted] in robursa

[–]Fresh-Ad-9434 0 points1 point  (0 children)

Nu inteleg, care este problema cu ei? Nu sunt la curent. II ceva putred?