Class CloudEventFactory
Builds the protobuf CloudEvents that Pubsub.PublishEvent takes.
public static class CloudEventFactory
- Inheritance
-
CloudEventFactory
- Inherited Members
Methods
Json(string, string, string, string)
A CloudEvent with a JSON text payload: a fresh id, datacontenttype
DataContentTypeJson, time now (UTC) and the
given subject. Names come from the naming library.
public static CloudEvent Json(string source, string type, string subject, string json)
Parameters
Returns
- CloudEvent