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 repository contains .NET libraries for CloudEvents issued by
Google. The Google.Events.Protobuf contains the Google event data
types, using Protocol Buffers as the serialization framework. Each
type is decorated with CloudEventFormatterAttribute to indicate an
appropriate CloudEventFormatter to use. This allows for seamless
integration in frameworks such as the Functions Framework, without
those frameworks depending on any libraries in this repository
directly.
Usage
From the .NET Functions Framework, these packages are automatically
used for CloudEvent functions implementing
ICloudEventFunction<TData>, where TData is one of the event data
classes.
If you wish to use these classes in a different context, code might
typically look something like this:
CloudEventcloudEvent= ...;// However you obtain a CloudEvent// The event data type from any of the serialization-specific packages.StorageObjectDatadata=CloudEventConverters.ConvertCloudEventData<StorageData>(cloudEvent);
Development
See BUILDING for more information about developing
the code within this repository.