-
Notifications
You must be signed in to change notification settings - Fork 165
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
Added public method to configure the NLog ServiceLocator #273
Conversation
Codecov Report
@@ Coverage Diff @@
## master #273 +/- ##
=====================================
Coverage 57% 57%
=====================================
Files 31 31
Lines 407 407
Branches 92 92
=====================================
Hits 233 233
Misses 138 138
Partials 36 36 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly what I needed. Thanks!
{ | ||
ServiceLocator.ServiceProvider = serviceProvider; | ||
ConfigurationItemFactory.Default.RegisterItemsFromAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly); | ||
LogManager.AddHiddenAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe reuse gettypeinfo/assembly for both calls?
Thanks! |
Attempt to resolve #270