Table of Contents

Class CloudEventFactory

Namespace
Virtufin.Api.Client
Assembly
Virtufin.Api.Client.dll

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

source string
type string
subject string
json string

Returns

CloudEvent