Table of Contents

Class KEFCoreTopicRetentionConvention

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

A convention that resolves per-entity topic retention configuration at model finalization time, storing the results as model annotations on each IEntityType.

public class KEFCoreTopicRetentionConvention : IModelFinalizingConvention, IConvention
Inheritance
KEFCoreTopicRetentionConvention
Implements
Inherited Members

Remarks

Reads KEFCoreTopicRetentionAttribute from the entity CLR type. Only the values explicitly set (i.e. >= 0) are stored as annotations — omitted values fall back to the global TopicConfig 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

modelBuilder IConventionModelBuilder

The builder for the model.

context IConventionContext<IConventionModelBuilder>

Additional information associated with convention execution.