Skip to content

Files

Latest commit

 

History

History

minimal-hosting

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Minimal Hosting (25)

Alternative Builders (2)

  • SlimBuilder

    WebApplication.CreateSlimBuilder creates WebApplicationBuilder with minimal configuration defaults.

  • EmptyBuilder

    WebApplication.CreateEmptyBuilder creates WebApplicationBuilder with no built-in behavior.

WebApplication (6)

This is a set of samples that demonstrates things that you can do with the default configuration using WebApplication.Create() before you have to resort to WebApplication.CreateBuilder().

Configuration (2)

  • WebApplication - Configuration

    This sample list all the information available in the Configuration property.

  • WebApplication - Configuration as JSON

    This sample list all the information available in the Configuration property and return it as JSON. WARNING: Do not use this in your application. It is a terrible idea. Do not expose your configuration information over the wire. This sample is just to demonstrate a technique.

Server (6)

Standard ASP.NET Core Middlewares (2)

WebApplicationBuilder - Minimal Hosting (5)

In most cases using WebApplication isn't enough because you need to configure additional services to be used in your system. This is where WebApplicationBuilder comes. It allows you to configure services and other properties.

WebApplicationOptions (2)

Use WebApplicationOptions to configure initial values of the WebApplicationBuilder object.

dotnet8