Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Make ILoggerFactory an optional service on any DI-injected services #247

Merged
merged 1 commit into from
Jun 13, 2017

Conversation

natemcmaster
Copy link
Contributor

Resolves #243

@natemcmaster natemcmaster force-pushed the namc/logging branch 2 times, most recently from f89f199 to 12f3e3b Compare June 13, 2017 07:38
@ajaybhargavb
Copy link
Contributor

cc @rynowak FYI

Copy link
Contributor

@ajaybhargavb ajaybhargavb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: after making sure the samples run as expected.


IDataProtectionProvider dataProtectionProvider = null;
dataProtectionProvider = new KeyRingBasedDataProtectionProvider(keyRingProvider, loggerFactory);
IDataProtectionProvider dataProtectionProvider = new KeyRingBasedDataProtectionProvider(keyRingProvider, loggerFactory);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicit typing required. Implicit typing would cause a compiler error due to the assignment that follows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants