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 support for abstract class parameters in settings #1059

Merged
merged 1 commit into from Nov 8, 2017

Conversation

tsimbalar
Copy link
Member

When a parameter is an abstract class, now accept the type name of a concrete subclass that has a default constructor ( the same way interfaces are supported)

What issue does this PR address?
Resolves #1056
This is the equivalent of serilog/serilog-settings-configuration#74

Does this PR introduce a breaking change?
Nope

Please check if the PR fulfills these requirements

  • The commit follows our guidelines
  • Unit Tests for the changes have been added (for bug fixes / features)

Other information:

When a parameter is an abstract class, now accept the type name of a concrete subclass that has a default constructor ( the same way interfaces are supported)
@skomis-mm
Copy link
Contributor

👍

@nblumhardt nblumhardt merged commit 6116df0 into serilog:dev Nov 8, 2017
@nblumhardt
Copy link
Member

👏

@tsimbalar tsimbalar deleted the settings-abstract-param branch November 9, 2017 06:46
@tsimbalar tsimbalar mentioned this pull request Nov 24, 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.

KeyValuePairSettings : support a fully qualified type name for arguments whose type is abstract
3 participants