Table of Contents

Class KEFCoreSerDesAttribute

Namespace
MASES.EntityFrameworkCore.KNet.Metadata
Assembly
MASES.EntityFrameworkCore.KNet.dll

Overrides the serialization types for the Kafka topic associated with this entity type. Takes precedence over the context-level KeySerDesSelectorType, ValueSerDesSelectorType and ValueContainerType.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class KEFCoreSerDesAttribute : Attribute
Inheritance
KEFCoreSerDesAttribute
Inherited Members

Remarks

All three types must be open generic type definitions (e.g. typeof(MySerDes<>)). Omitted parameters inherit the context-level default.

Constructors

KEFCoreSerDesAttribute(Type?, Type?, Type?)

Initializes a new instance of KEFCoreSerDesAttribute.

public KEFCoreSerDesAttribute(Type? keySerDesSelectorType = null, Type? valueSerDesSelectorType = null, Type? valueContainerType = null)

Parameters

keySerDesSelectorType Type

The open generic type for key serialization, or null to inherit the context default.

valueSerDesSelectorType Type

The open generic type for value container serialization, or null to inherit the context default.

valueContainerType Type

The open generic type for the value container, or null to inherit the context default.

Properties

KeySerDesSelectorType

The open generic key serializer selector type, or null to inherit the context default.

public Type? KeySerDesSelectorType { get; }

Property Value

Type

ValueContainerType

The open generic value container type, or null to inherit the context default.

public Type? ValueContainerType { get; }

Property Value

Type

ValueSerDesSelectorType

The open generic value container serializer selector type, or null to inherit the context default.

public Type? ValueSerDesSelectorType { get; }

Property Value

Type