Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 723 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 723 Bytes

DotNet Framework with ILogger and DI

Using .Net Core programming model of ILogger and DI in legacy .Net Framework applications with limited scope to change

ConsoleFWKILoggerDIDemo

  • This shows how a legacy .Net Framework console program can be modernized with DI and ILogger usage

WebAPIFWKILoggerDIDemo

  • This shows how a legacy .Net Framework WebAPI application can be modernized with DI and ILogger usage

For using modern DI with legacy ASP.Net MVC apps refer this sample

Handling appsettings.json

The file needs to be in the PWD to configure logging.

To add ApplicationInsights

  • ConfigureServices needs to be modified to add application insights.