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

Refactor wrapper sinks #1466

Merged
merged 4 commits into from
Jul 30, 2020
Merged

Conversation

nblumhardt
Copy link
Member

  • Breaks the inheritance relationship between SafeAggregateSink and DisposingSafeAggregateSink - generally we're aiming to avoid inheritance wherever we can
  • Merges Update LoggerSinkConfiguration.Wrap() to use AggregateSink ... #1449 from @augustoproiete - DisposingSafeAggregateSink should be DisposingAggregateSink, so that wrapper sinks can observe exceptions in more cases
  • Renames DisposeWrappingSink to DisposeDelegatingSink and removes a level of indirection, since the introduction of the disposing aggregate sink means that the enclosed/wrapped sink will always be IDisposable in the case that disposal is required
  • Some tidy-up based on Rider's latest suggestions...

@nblumhardt
Copy link
Member Author

While I have some time to work through the queue, I'm going to merge a few fairly straightforward things; 👀 always appreciated after-the-fact, this won't be out on stable until we cut a 2.10.0 release :-)

@nblumhardt nblumhardt merged commit 94a934d into serilog:dev Jul 30, 2020
@nblumhardt nblumhardt mentioned this pull request Sep 10, 2020
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.

None yet

2 participants