Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a .NET console application sample #99

Merged
merged 2 commits into from
Feb 18, 2017
Merged

Add a .NET console application sample #99

merged 2 commits into from
Feb 18, 2017

Conversation

jamesbperry
Copy link

Here's a very simple example showing an NLog application cooperating with a library that uses Microsoft.Extensions.Logging. In response to #86

@304NotModified
Copy link
Member

304NotModified commented Feb 17, 2017

Fixes #86

Thanks! 🎉

@304NotModified
Copy link
Member

So you're not using DI here? Was expecting that.

@jamesbperry
Copy link
Author

Good point - kind of defeats the purpose not to!

Just committed an update which uses very basic DI. I have no experience with Microsoft.Extensions.DependencyInjection outside its translucent role in AspNetCore. So, here in this simple console app, hopefully traditional Autofac usage isn't a complete misfit!

@304NotModified
Copy link
Member

Cool! Thanks!

@304NotModified 304NotModified merged commit 0145775 into NLog:master Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants