C
C#14mo ago
ANewDeveloper

❔ Help with ASP.NET startup

I needed to understand how the initialization of the ASP.NET web application occurs and how the internal workings of it occur. Any resource or documentation about it would be helpful or even answers.
7 Replies
Keswiik
Keswiik14mo ago
App startup in ASP.NET Core
Learn how the Startup class in ASP.NET Core configures services and the app's request pipeline.
ANewDeveloper
ANewDeveloper14mo ago
I wanted to gain a deeper understanding on how the ASP.NET application starts all the way from a console application and then gets converted into the web application/API and how it happens on a low level.
Pobiega
Pobiega14mo ago
there is no "conversion" its always a console app, it just that the console doesnt take any input - it just "runs" the ASP.NET host sounds more like you want to understand the request pipeline and ASP internals, such as routing etc
ANewDeveloper
ANewDeveloper14mo ago
Kind of yea, is there any place where i could read up on it, or would i just need to dive into the ASP.NET code on github
Pobiega
Pobiega14mo ago
ASP.NET Core fundamentals overview
Learn the fundamental concepts for building ASP.NET Core apps, including dependency injection (DI), configuration, middleware, and more.
Pobiega
Pobiega14mo ago
the middleware section will be important the asp pipeline is quite simple at its core. a request comes in, this creates a new HttpContext filled with information from the request. it then starts the pipeline, triggering each middleware in turn. a middleware is essentially a function that calls the next function.
private readonly RequestDelegate _next;

public async Task InvokeAsync(HttpContext context)
{
// you can run code before the next handler (before the response)
await _next(context);
// or you can run code after that entire chain has ended (after the response)
}
private readonly RequestDelegate _next;

public async Task InvokeAsync(HttpContext context)
{
// you can run code before the next handler (before the response)
await _next(context);
// or you can run code after that entire chain has ended (after the response)
}
you can make your own middleware, but there are a ton already included with ASP.NET - including routing, executing controllers or other request handlers, etc.
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ AutoMapper Mapping Profiles ConfigurationHello, I'm trying to obtain the "Groups" with the users included. I'm however experiencing various A❔ CIM Class MDM_RemoteWipe Method QuestionHi friends, I am attempting to call a method using `CimSession.InvokeMethod()` called `doWipeProtec❔ how to reference all dlls in separate folder such as "bin" or "lib"self explanatory title✅ ✅ Vararg P/Invoke (x86) throws BadImageFormatException (0x80131124 "Index not found")I am attempting to perform vararg P/Invokes following signatures I see on pinvoke.net and, e.g., htt✅ Attachment upload to Jira through a custom application using AJAX and ASP .NET Core 6 - Rest SharpSo I have this ajax snippet with which I send the files to my custom controller, using the IFormFile❔ I looking for Game Engine / Framework!Is there any cool Game Engine / Framework✅ Weird values on accessing Database using EF DbContext under throughput load testHello! I'm testing an ASP.NET application that uses an SQL Database. To access this database I defiProperties of IConfigurationSection.Get are null?I have a very simple test case set up using Microsoft.Extensions.Configuration and Microsoft.ExtensiHow do I pass data from my partial view to my main layout in ASP Core?I have this code in my partial view: ``` // Partial View Lesson.html @{ ViewData["LessonTitle"] ✅ [wpf] how to solve autometically closed new window when I create new window..In StickyNotesView.xaml , I create new Window but If I click '+' that new window not only undisplaye