MQContract.Kafka
2.6.1
dotnet add package MQContract.Kafka --version 2.6.1
NuGet\Install-Package MQContract.Kafka -Version 2.6.1
<PackageReference Include="MQContract.Kafka" Version="2.6.1" />
<PackageVersion Include="MQContract.Kafka" Version="2.6.1" />
<PackageReference Include="MQContract.Kafka" />
paket add MQContract.Kafka --version 2.6.1
#r "nuget: MQContract.Kafka, 2.6.1"
#:package MQContract.Kafka@2.6.1
#addin nuget:?package=MQContract.Kafka&version=2.6.1
#tool nuget:?package=MQContract.Kafka&version=2.6.1
<a name='assembly'></a>
MQContract.Kafka
Contents
- Connection
- MissingSchemaException
- PersistenceFailedException
- SchemaValidationFailedException
- SchemaValidationMiddleware
<a name='T-MQContract-Kafka-Connection'></a>
Connection type
Namespace
MQContract.Kafka
Summary
This is the MessageServiceConnection implementation for using Kafka
Parameters
Name | Type | Description |
---|---|---|
clientConfig | T:MQContract.Kafka.Connection | The Kafka Client Configuration to provide |
<a name='M-MQContract-Kafka-Connection-#ctor-Confluent-Kafka-ClientConfig-'></a>
#ctor(clientConfig) constructor
Summary
This is the MessageServiceConnection implementation for using Kafka
Parameters
Name | Type | Description |
---|---|---|
clientConfig | Confluent.Kafka.ClientConfig | The Kafka Client Configuration to provide |
<a name='T-MQContract-Kafka-MissingSchemaException'></a>
MissingSchemaException type
Namespace
MQContract.Kafka
Summary
Thrown when the service is unable to find a schema for a given message and it is set to fail when missing
<a name='T-MQContract-Kafka-PersistenceFailedException'></a>
PersistenceFailedException type
Namespace
MQContract.Kafka
Summary
Thrown when a publish message fails to persist in the system
<a name='T-MQContract-Kafka-SchemaValidationFailedException'></a>
SchemaValidationFailedException type
Namespace
MQContract.Kafka
Summary
Thrown when the content of a message fails to validate against the schema
<a name='T-MQContract-Kafka-Middleware-SchemaValidationMiddleware'></a>
SchemaValidationMiddleware type
Namespace
MQContract.Kafka.Middleware
Summary
Used to inject a confluent schema registry validation middleware that will use the confluent style schema registry to validate message types and attach schema information to each message
Parameters
Name | Type | Description |
---|---|---|
schemaRegistryClient | T:MQContract.Kafka.Middleware.SchemaValidationMiddleware | A schema registry client used to validate messages |
<a name='M-MQContract-Kafka-Middleware-SchemaValidationMiddleware-#ctor-Confluent-SchemaRegistry-ISchemaRegistryClient,System-Boolean,System-Boolean,Confluent-SchemaRegistry-SchemaType,System-Func{System-Type,System-Threading-Tasks-ValueTask{System-String}},System-Func{Confluent-SchemaRegistry-Schema,System-IO-Stream,System-Threading-Tasks-ValueTask{System-Boolean}}-'></a>
#ctor(schemaRegistryClient,failOnMissingSchema,autoRegisterSchema,registerSchemaType,extractSchemaAsync,validateSchemaAsync) constructor
Summary
Used to inject a confluent schema registry validation middleware that will use the confluent style schema registry to validate message types and attach schema information to each message
Parameters
Name | Type | Description |
---|---|---|
schemaRegistryClient | Confluent.SchemaRegistry.ISchemaRegistryClient | A schema registry client used to validate messages |
failOnMissingSchema | System.Boolean | Indicates if the message should fail when no schema is available |
autoRegisterSchema | System.Boolean | Indicates if the system should attempt to register a schema when one is not found on the publish side |
registerSchemaType | Confluent.SchemaRegistry.SchemaType | The default schema registration type to use when registering a schema |
extractSchemaAsync | System.Func{System.Type,System.Threading.Tasks.ValueTask{System.String}} | An alternative call to generate the schema for a given message type, otherwise NJsonSchema will be used |
validateSchemaAsync | System.Func{Confluent.SchemaRegistry.Schema,System.IO.Stream,System.Threading.Tasks.ValueTask{System.Boolean}} | An alternative call to validate the schema and the incoming message content, otherwise it will default through NJsonSchema |
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 was computed. 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. |
-
net8.0
- Confluent.Kafka (>= 2.11.0)
- Confluent.SchemaRegistry (>= 2.11.0)
- MQContract.Abstractions (>= 2.6.1)
- NJsonSchema (>= 11.3.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.