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.
39 lines
1.1 KiB
39 lines
1.1 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
#if INCLUDE_KAFKA
|
|
using Squidex.Domain.Apps.Core.Rules.Deprecated;
|
|
using Squidex.Flows;
|
|
using Squidex.Infrastructure.Reflection;
|
|
using Squidex.Infrastructure.Validation;
|
|
|
|
namespace Squidex.Extensions.Actions.Kafka;
|
|
|
|
[Obsolete("Has been replaced by flows.")]
|
|
public sealed record KafkaAction : RuleAction
|
|
{
|
|
[LocalizedRequired]
|
|
public string TopicName { get; set; }
|
|
|
|
public string? Payload { get; set; }
|
|
|
|
public string? Key { get; set; }
|
|
|
|
public string? Headers { get; set; }
|
|
|
|
public string? Schema { get; set; }
|
|
|
|
public string? PartitionKey { get; set; }
|
|
|
|
public int PartitionCount { get; set; }
|
|
|
|
public override FlowStep ToFlowStep()
|
|
{
|
|
return SimpleMapper.Map(this, new KafkaFlowStep());
|
|
}
|
|
}
|
|
#endif
|
|
|