Kafka.Context.Abstractions 1.2.1

dotnet add package Kafka.Context.Abstractions --version 1.2.1
                    
NuGet\Install-Package Kafka.Context.Abstractions -Version 1.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kafka.Context.Abstractions" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kafka.Context.Abstractions" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Kafka.Context.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kafka.Context.Abstractions --version 1.2.1
                    
#r "nuget: Kafka.Context.Abstractions, 1.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Kafka.Context.Abstractions@1.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Kafka.Context.Abstractions&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Kafka.Context.Abstractions&version=1.2.1
                    
Install as a Cake Tool

Kafka.Context.Abstractions

Shared abstractions and attributes used by Kafka.Context.

Most users should install Kafka.Context and let it pull this package transitively.

What is inside

  • Attributes used to describe Kafka topic and Avro mapping contracts:
    • KafkaTopicAttribute
    • KafkaKeyAttribute
    • KafkaTimestampAttribute
    • KafkaDecimalAttribute
    • SchemaSubjectAttribute (Schema Registry subject metadata; used by CLI verify)
    • SchemaFingerprintAttribute (schema fingerprint metadata; used by CLI verify)
  • Modeling abstractions used by KafkaContext.OnModelCreating(...) (e.g., IModelBuilder).

Minimal example (attributes)

using Kafka.Context.Attributes;

[KafkaTopic("orders")]
public sealed class Order
{
    [KafkaKey] public int OrderId { get; set; }
    [KafkaDecimal(9, 2)] public decimal Amount { get; set; }
}

Schema Scaffold / Verify (CLI, optional)

If you want SR (Schema Registry) fingerprint checks in CI/dev, use the dotnet tool:

dotnet tool install -g Kafka.Context.Cli

See https://www.nuget.org/packages/Kafka.Context.Cli.

Next steps

AI Assist

If you're unsure how to use this package, run kafka-context ai guide --copy and paste the output into your AI assistant.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Kafka.Context.Abstractions:

Package Downloads
Kafka.Context.Application

Package Description

Kafka.Context.Messaging

Package Description

Kafka.Context

Package Description

Kafka.Context.Streaming

Package Description

Kafka.Context.Streaming.Flink

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 212 1/1/2026
1.2.0 279 12/22/2025
1.1.0 221 12/20/2025
1.0.1 289 12/15/2025
1.0.0 295 12/15/2025