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

Add System.Text.Json converter for EventGridEvent #22295

Merged
merged 5 commits into from
Jun 29, 2021

Conversation

JoshLove-msft
Copy link
Member

Fixes #21639

/// A custom converter that attributes the <see cref="EventGridEvent"/> type.
/// This allows System.Text.Json to serialize and deserialize EventGridEvent by default.
/// </summary>
internal class EventGridEventConverter : JsonConverter<EventGridEvent>
Copy link
Member Author

@JoshLove-msft JoshLove-msft Jun 29, 2021

Choose a reason for hiding this comment

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

This is covered by existing tests after switching the Parse and Publish methods to use this.

@JoshLove-msft
Copy link
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft
Copy link
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft
Copy link
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft
Copy link
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft JoshLove-msft enabled auto-merge (squash) June 29, 2021 21:22
@JoshLove-msft JoshLove-msft merged commit f15ec78 into Azure:main Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add custom converter for EventGridEvent
3 participants