mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
979 B
30 lines
979 B
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using Confluent.Kafka;
|
|
using Confluent.SchemaRegistry;
|
|
using Confluent.SchemaRegistry.Serdes;
|
|
|
|
namespace Squidex.Extensions.Actions.Kafka
|
|
{
|
|
public class KafkaProducerOptions : ProducerConfig
|
|
{
|
|
public SchemaRegistryConfig SchemaRegistry { get; set; }
|
|
|
|
public AvroSerializerConfig AvroSerializer { get; set; }
|
|
|
|
public bool IsProducerConfigured()
|
|
{
|
|
return !string.IsNullOrWhiteSpace(BootstrapServers);
|
|
}
|
|
|
|
public bool IsSchemaRegistryConfigured()
|
|
{
|
|
return !string.IsNullOrWhiteSpace(SchemaRegistry?.Url);
|
|
}
|
|
}
|
|
}
|
|
|