Knowledgebase

Understanding ASP.NET Core Print

  • microsofttechnology, microsoft, guide, howto, solution, zillionkinghost, hosting, support
  • 0

Building web applications and APIs.

WHAT IT IS

The web framework within the modern platform.

WHAT IT SUPPORTS

APIs Server-rendered web applications Real-time communication Interactive web applications through Blazor

WHAT THE PIPELINE IS

A sequence of components each handling a request and passing it on.

WHY THAT MATTERS

Order determines behaviour, and misordering causes faults that are confusing.

WHAT TO ORDER CAREFULLY

Exception handling, first Encryption enforcement Static files Routing Authentication, then authorisation

WHY AUTHENTICATION BEFORE AUTHORISATION

You must establish who someone is before deciding what they may do.

WHAT DEPENDENCY INJECTION PROVIDES

Services supplied to components rather than created by them.

WHY IT MATTERS

It is what makes the application testable and replaceable.

WHAT LIFETIMES EXIST

Singleton, scoped per request, and transient.

WHAT TO BE CAREFUL WITH

Injecting a shorter-lived service into a longer-lived one.

WHAT THAT CAUSES

A captured dependency used beyond its intended lifetime, producing subtle faults.

WHAT TO CONFIGURE

Settings outside the code, per environment.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot