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
<PackageReference Include="Kafka.Context.Abstractions" Version="1.2.1" />
<PackageVersion Include="Kafka.Context.Abstractions" Version="1.2.1" />
<PackageReference Include="Kafka.Context.Abstractions" />
paket add Kafka.Context.Abstractions --version 1.2.1
#r "nuget: Kafka.Context.Abstractions, 1.2.1"
#:package Kafka.Context.Abstractions@1.2.1
#addin nuget:?package=Kafka.Context.Abstractions&version=1.2.1
#tool nuget:?package=Kafka.Context.Abstractions&version=1.2.1
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:
KafkaTopicAttributeKafkaKeyAttributeKafkaTimestampAttributeKafkaDecimalAttributeSchemaSubjectAttribute(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
- Main package README: https://github.com/synthaicode/Kafka.Context
- Configuration reference (
appsettings.json): https://github.com/synthaicode/Kafka.Context/blob/main/docs/contracts/appsettings.en.md
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 | Versions 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. |
-
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.