Getting Value from appsettings.json in .NET Core

PHOTO EMBED

Wed Apr 20 2022 18:52:56 GMT+0000 (Coordinated Universal Time)

Saved by @iamsingularity #csharp

public void ConfigureServices(IServiceCollection services)
{
    services.Configure<Logging>(Configuration.GetSection("Logging"));

    services.AddControllers();
}
content_copyCOPY

https://www.telerik.com/blogs/how-to-get-values-from-appsettings-json-in-net-core