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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
4.0.0 (2020-03-11)
New Features
added sendEvent to EventGridPublisherClient and EventGridPublisherAsyncClient to send a single event.
Breaking changes
CloudEvent is moved to azure-core SDK version 1.14.0. Its constructor uses BinaryData instead of Object as the data type for data.
EventGridEvent constructor also uses BinaryData instead of Object as the data type for data.
To send custom events, sendEvents accepts Iterable<BinaryData> instead of Iterable<Object>.
EventGridPublisherClientBuilder.serializer() is removed because BinaryData.fromObject(Object data, ObjectSerializer serializer) already supports custom serializer, which can be used to
serialize custom events and the data of CloudEvent and EventGridEvent.
EventGridPublisherClient is changed to EventGridPublisherClient<T> that can be statically instantiated to send CloudEvent, EventGridEvent or custom events (use BinaryData)
with methods sendEvents and sendEvent. EventGridPublisherClientBuilder now has buildCloudEventPublisherClient, buildEventGridEventPublisherClient and buildCustomEventPublisherClient to build the generic-instantiated clients respectively.
The async client has the same change.
EventGridPublisherClientBuilder.endpoint() now requires the EventGrid topic or domain full url endpoint because
different EventGrid service deployments may require different url patterns.
EventGridSasGenerator is removed. Method generateSas is moved to EventGridPublisherClient and EventGridPublisherAsyncClient.