Skip to content

Using modern ILogger and DI in legacy .Net Framework applications that have limited scope to change

License

Notifications You must be signed in to change notification settings

dotnet-demos/dotnet-framework-ILogger-DI

Repository files navigation

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.

About

Using modern ILogger and DI in legacy .Net Framework applications that have limited scope to change

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published