Class KEFCoreTopicPartitionsConvention
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata.Conventions
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
A convention that resolves per-entity topic partition and replication factor configuration at model finalization time, storing the results as model annotations on each IEntityType.
public class KEFCoreTopicPartitionsConvention : IModelFinalizingConvention, IConvention
- Inheritance
-
KEFCoreTopicPartitionsConvention
- Implements
- Inherited Members
Remarks
Reads KEFCoreTopicPartitionsAttribute and KEFCoreTopicReplicationFactorAttribute from the entity CLR type. If neither is present, the global defaults from DefaultNumPartitions and DefaultReplicationFactor apply at topic creation time.
Methods
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
Called when a model is being finalized.
public void ProcessModelFinalizing(IConventionModelBuilder modelBuilder, IConventionContext<IConventionModelBuilder> context)
Parameters
modelBuilderIConventionModelBuilderThe builder for the model.
contextIConventionContext<IConventionModelBuilder>Additional information associated with convention execution.