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

Introduce simplified producer syntax #2148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sungam3r
Copy link
Contributor

@sungam3r sungam3r commented Dec 2, 2023

This PR adds implicit cast operators from value tuples to Message<T,V> to allow such syntax

p.Produce("my-topic", i.ToString(), handler);

compared to current syntax

p.Produce("my-topic", new Message<Null, string> { Value = i.ToString() }, handler);

The goal is to reduce boilerplate code from user code shifting all needed machinery to compiler.

This PR adds one additional dependency for netstandard1.3 target:

<PackageReference Include="System.ValueTuple" Version="4.5.0" />

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

1 participant