Struct SerializationContext
Context relevant to a serialization or deserialization operation.
Inherited Members
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.dll
Syntax
public struct SerializationContext
Constructors
SerializationContext(MessageComponentType, String, Headers)
Create a new SerializationContext object instance.
Declaration
public SerializationContext(MessageComponentType component, string topic, Headers headers = null)
Parameters
Type | Name | Description |
---|---|---|
MessageComponentType | component | The component of the message the serialization operation relates to. |
System.String | topic | The topic the data is being written to or read from. |
Headers | headers | The collection of message headers (or null). Specifying null or an empty list are equivalent. The order of headers is maintained, and duplicate header keys are allowed. |
Properties
Component
The component of the message the serialization operation relates to.
Declaration
public MessageComponentType Component { readonly get; }
Property Value
Type | Description |
---|---|
MessageComponentType |
Empty
The default SerializationContext value (representing no context defined).
Declaration
public static readonly SerializationContext Empty { get; }
Property Value
Type | Description |
---|---|
SerializationContext |
Headers
The collection of message headers (or null). Specifying null or an empty list are equivalent. The order of headers is maintained, and duplicate header keys are allowed.
Declaration
public Headers Headers { readonly get; }
Property Value
Type | Description |
---|---|
Headers |
Topic
The topic the data is being written to or read from.
Declaration
public string Topic { readonly get; }
Property Value
Type | Description |
---|---|
System.String |