• .NET 6 using Onion Architecture - Part 5 - Adding a Blazor User Interface- Episode 9

  • Aug 31 2022
  • Length: 43 mins
  • Podcast

.NET 6 using Onion Architecture - Part 5 - Adding a Blazor User Interface- Episode 9  By  cover art

.NET 6 using Onion Architecture - Part 5 - Adding a Blazor User Interface- Episode 9

  • Summary

  • Code Sample

    In this episode, Jeffrey is going to cap off the basic Onion Architecture implementation on .NET 6 by adding to the application a Blazor user interface in the simplest way, to can see how the core of our Onion Architecture structure is created and then add interfaces.  First, with an interface to a database. Second, with an interface to a person. 

    Interfaces are added in the same manner, but the user interface is typically added last because the rest of the structure needs to get up and running first and then wire it in.  Interestingly, in .NET UI projects, typically the UI project also has responsibility for starting up the application, which is a very, explicit responsibility.  

    It is important to be aware of two responsibilities here. When adding a project to visual studio, the first responsibility is to start up the application, regardless of what it does. The second responsibility is to have an interface for a user, where a human being is actually bringing up a screen, looking at some things that interact, typing in some text boxes, and hitting some buttons.  You’re responsible for starting up the application and letting the user interact with it.  The same thing with a web service API application or even a backend job that just listens for messages coming on a queue. That’s the way visual studio tooling is always used and the way the dominant framework works. In Onion Architecture, those are treated differently.  You're going to see how to do it and how to make sure not to muddle user interface responsibilities with startup responsibilities.

    Thanks to Clear Measure for sponsoring this sample and episode of Programming with Palermo.

    This program is syndicated on many channels. To send a question or comment to the show, email programming@palermo.network. We’d love to hear from you.

    To use the private and confidential Chaplain service, use the following
    Gentleman: 512-619-6950
    Lady: 512-923-8178

    Show more Show less

What listeners say about .NET 6 using Onion Architecture - Part 5 - Adding a Blazor User Interface- Episode 9

Average customer ratings

Reviews - Please select the tabs below to change the source of reviews.