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

Use HalfSerializer extensions #572

Merged
merged 5 commits into from
Jun 5, 2018
Merged

Use HalfSerializer extensions #572

merged 5 commits into from
Jun 5, 2018

Conversation

danielcweber
Copy link
Collaborator

The new HalfSerializer extensions should be used where applicable to reduce code repetition. The extensions have been changed to work on ISink instead of IObserver, a new base interface for Sinks.

Copy link
Collaborator

@akarnokd akarnokd left a comment

Choose a reason for hiding this comment

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

I'm not sure if ISink can be always the target from now on but I guess there could be overloads for IObserver again if necessary.

@danielcweber
Copy link
Collaborator Author

danielcweber commented Jun 5, 2018

The alternative would have been to have the extensions keep working on IObserver, have only Sink call those extensions and thus introduce a rather obscure zoo of Sinks, e.g. HalfSerializedSink<T>, HalfSerializedSink<TSource, TTarget>, HalfSerializedIdentitySink....

@danielcweber
Copy link
Collaborator Author

It would be cool if RetryWhen could make use of the HalfSerializer now and somewho fit into the Producer/Sink scheme.

@danielcweber danielcweber merged commit fa0d583 into dotnet:master Jun 5, 2018
@danielcweber danielcweber deleted the UseHalfserializer branch June 5, 2018 13:55
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