Click or drag to resize
Grid Solutions Framework

SerializationExtensionsKakfaSerialize Method

Serializes a time-series IMeasurement instance into key-value buffers for a Kafka message.

Namespace: KafkaAdapters
Assembly: KafkaAdapters (in KafkaAdapters.dll) Version: 2.4.207-beta
Syntax
public static void KakfaSerialize(
	this IMeasurement measurement,
	Message message,
	byte metadataVersion
)
View Source

Parameters

measurement  IMeasurement
IMeasurement instance to serialize.
message  Message
Kafka message to hold serialized key-value buffers.
metadataVersion  Byte
Current metadata serialization version.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMeasurement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also