Skip to content

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