Skip to content

.NET 6 | Startup Class | Autofac | Serilog | Serilog Sink Seq | Problem | Problem Details | Options Pattern

Notifications You must be signed in to change notification settings

jinsongeo/Net6-UseStartupClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET 6 PoCs

Using Startup Class with .NET 6

Comparing the Problem & ProblemDetails Results

Setting up Serilog

Setting up Seq

docker pull datalust/seq

docker run --name seq -d --restart unless-stopped -e ACCEPT_EULA=Y -p 5341:80 datalust/seq:latest

Configurations - Options pattern in ASP.NET Core

Configuration -> GetSection -> Bind

 var localAppSettings = new AppSettings();
_configuration.GetSection(AppSettings.Key).Bind(localAppSettings);

Configuration -> Get Section - Get

var localAppSettings = _configuration.GetSection(AppSettings.Key).Get<AppSettings>();

Services -> Configure

services.Configure<AppSettings>(Configuration.GetSection(AppSettings.Key));

Service -> AddOptions -> Bind

services.AddOptions<TokenSettings>().Bind(Configuration.GetSection(TokenSettings.Key));

About

.NET 6 | Startup Class | Autofac | Serilog | Serilog Sink Seq | Problem | Problem Details | Options Pattern

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages