Table of Contents

Class KEFCoreTopicReplicationFactorAttribute

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

Overrides the replication factor for the Kafka topic associated with this entity type. Takes precedence over DefaultReplicationFactor. Applied at topic creation time (EnsureCreated()).

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

Constructors

KEFCoreTopicReplicationFactorAttribute(short)

Initializes a new instance of KEFCoreTopicReplicationFactorAttribute.

public KEFCoreTopicReplicationFactorAttribute(short replicationFactor)

Parameters

replicationFactor short

The replication factor for the topic. Must be greater than zero.

Properties

ReplicationFactor

The replication factor for the Kafka topic associated with this entity type.

public short ReplicationFactor { get; }

Property Value

short