Skip to content

Added Header samples for dotnet isolated runtime #345

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

Merged
merged 3 commits into from
May 16, 2022

Conversation

krishna-kariya
Copy link
Contributor

Added Header samples for dotnet isolated runtime for Kafka Trigger and Kafka Output

events[0] = "{ \"Offset\":364,\"Partition\":0,\"Topic\":\"kafkaeventhubtest1\",\"Timestamp\":\"2022-04-09T03:20:06.591Z\", \"Value\": \"one\", \"Headers\": [{ \"Key\": \"test\", \"Value\": \"dotnet-isolated\" }] }";
events[1] = "{ \"Offset\":364,\"Partition\":0,\"Topic\":\"kafkaeventhubtest1\",\"Timestamp\":\"2022-04-09T03:20:06.591Z\", \"Value\": \"two\", \"Headers\": [{ \"Key\": \"test\", \"Value\": \"dotnet-isolated\" }] }";

return new MultipleOutputTypeForBatch()
Copy link
Contributor

Choose a reason for hiding this comment

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

Since MultipleOutputTypeForBatch class is used at multiple places would it make sense to take it out of the sample and put in a common place?

Copy link
Contributor

@shrohilla shrohilla left a comment

Choose a reason for hiding this comment

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

LGTM, please create a workitem for the change related to refactoring the code to move out in a funciton and keep in hold for merge until the NuGet package is out

@shrohilla shrohilla merged commit 6766644 into dev May 16, 2022
@shrohilla shrohilla deleted the kkariya/IsolatedHeaderSamples branch May 16, 2022 17:15
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.

3 participants