From b51ee74653d20e047a9efb27908923abfd428f15 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 23 Mar 2026 09:36:07 +0800 Subject: [PATCH] Remove unused System.Text.Json using from Azure and Kafka providers, remove dead IsDynamicEvent method from Dapr provider --- .../Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs | 1 - .../Volo/Abp/EventBus/Dapr/DaprDistributedEventBus.cs | 5 ----- .../Volo/Abp/EventBus/Kafka/KafkaDistributedEventBus.cs | 1 - 3 files changed, 7 deletions(-) diff --git a/framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs b/framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs index 0004bce24b..73bf5cfc3d 100644 --- a/framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs +++ b/framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; -using System.Text.Json; using System.Threading.Tasks; using Azure.Messaging.ServiceBus; using Microsoft.Extensions.DependencyInjection; diff --git a/framework/src/Volo.Abp.EventBus.Dapr/Volo/Abp/EventBus/Dapr/DaprDistributedEventBus.cs b/framework/src/Volo.Abp.EventBus.Dapr/Volo/Abp/EventBus/Dapr/DaprDistributedEventBus.cs index d122d3e5e3..5e89571554 100644 --- a/framework/src/Volo.Abp.EventBus.Dapr/Volo/Abp/EventBus/Dapr/DaprDistributedEventBus.cs +++ b/framework/src/Volo.Abp.EventBus.Dapr/Volo/Abp/EventBus/Dapr/DaprDistributedEventBus.cs @@ -288,11 +288,6 @@ public class DaprDistributedEventBus : DistributedEventBusBase, ISingletonDepend { return EventTypes.GetOrDefault(eventName); } - - public bool IsDynamicEvent(string eventName) - { - return false; - } /// public override void Unsubscribe(string eventName, IEventHandlerFactory factory) diff --git a/framework/src/Volo.Abp.EventBus.Kafka/Volo/Abp/EventBus/Kafka/KafkaDistributedEventBus.cs b/framework/src/Volo.Abp.EventBus.Kafka/Volo/Abp/EventBus/Kafka/KafkaDistributedEventBus.cs index 792442aa06..6a886afbc4 100644 --- a/framework/src/Volo.Abp.EventBus.Kafka/Volo/Abp/EventBus/Kafka/KafkaDistributedEventBus.cs +++ b/framework/src/Volo.Abp.EventBus.Kafka/Volo/Abp/EventBus/Kafka/KafkaDistributedEventBus.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; -using System.Text.Json; using System.Threading.Tasks; using Confluent.Kafka; using Microsoft.Extensions.DependencyInjection;