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

Schema should be defined as a C# object in a NuGet package #27026

Open
runeksvendsen opened this Issue Mar 13, 2019 — with docs.microsoft.com · 3 comments

Comments

Projects
None yet
4 participants
Copy link

runeksvendsen commented Mar 13, 2019 — with docs.microsoft.com

Rather than describing a data schema in an article like this, the producers of this data should expose the data transfer object (DTO) they use in a NuGet package, so consumers of this API can just import this package and use this DTO (rather than creating their own from reading this article).

The DTO must exist somewhere (if the API is properly specified), so why not just expose that?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@KetanChawda-MSFT

This comment has been minimized.

Copy link
Contributor

KetanChawda-MSFT commented Mar 13, 2019

@runeksvendsen Thank you providing feedback. We have assigned this to content author to evaluate and update as appropriate.

@spelluru

This comment has been minimized.

Copy link
Contributor

spelluru commented Mar 14, 2019

@banisadr - Please review and respond when you get a chance. Thanks.

@banisadr

This comment has been minimized.

Copy link
Contributor

banisadr commented Mar 15, 2019

Hi @runeksvendsen, we provide the full detailed schema here with notes on each field as a reference for you to understand the data you should expect and plan your application architecture.

We have an open repo that includes the schema of all 1st class supported event types. When we generate our SDKs, we use this repo to include concrete classes for each event type.

For check out our SDKs page
to get the latest Event Grid data plane SDK for .NET. Our guide on receiving events at an HTTP endpoint has an example on using the SDK to consume storage events natively with the SDK. Consuming resource group events would work the same way. Our sample repo also has demonstrates usage in all of our supported languages.

Hope that helps clear things up. We'll try to clear this up in the documentation as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.