From b63bd585402e124a87e21b89be7f48b195d4234b Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 7 May 2025 17:44:48 -0500 Subject: [PATCH] move rule interfaces --- src/Infrastructure/BotSharp.Abstraction/Rules/IRuleAction.cs | 5 +++++ src/Infrastructure/BotSharp.Abstraction/Rules/IRuleConfig.cs | 5 +++++ .../BotSharp.Abstraction/Rules/IRuleCriteria.cs | 5 +++++ .../Engines => BotSharp.Abstraction/Rules}/IRuleEngine.cs | 4 +--- .../BotSharp.Core.Rules/Actions/IRuleAction.cs | 5 ----- .../BotSharp.Core.Rules/Criterias/IRuleCriteria.cs | 5 ----- .../BotSharp.Core.Rules/Triggers/IRuleConfig.cs | 5 ----- 7 files changed, 16 insertions(+), 18 deletions(-) create mode 100644 src/Infrastructure/BotSharp.Abstraction/Rules/IRuleAction.cs create mode 100644 src/Infrastructure/BotSharp.Abstraction/Rules/IRuleConfig.cs create mode 100644 src/Infrastructure/BotSharp.Abstraction/Rules/IRuleCriteria.cs rename src/Infrastructure/{BotSharp.Core.Rules/Engines => BotSharp.Abstraction/Rules}/IRuleEngine.cs (65%) delete mode 100644 src/Infrastructure/BotSharp.Core.Rules/Actions/IRuleAction.cs delete mode 100644 src/Infrastructure/BotSharp.Core.Rules/Criterias/IRuleCriteria.cs delete mode 100644 src/Infrastructure/BotSharp.Core.Rules/Triggers/IRuleConfig.cs diff --git a/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleAction.cs b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleAction.cs new file mode 100644 index 00000000..bebac5d6 --- /dev/null +++ b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleAction.cs @@ -0,0 +1,5 @@ +namespace BotSharp.Abstraction.Rules; + +public interface IRuleAction +{ +} diff --git a/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleConfig.cs b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleConfig.cs new file mode 100644 index 00000000..dcbe1827 --- /dev/null +++ b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleConfig.cs @@ -0,0 +1,5 @@ +namespace BotSharp.Abstraction.Rules; + +public interface IRuleConfig +{ +} diff --git a/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleCriteria.cs b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleCriteria.cs new file mode 100644 index 00000000..bc502291 --- /dev/null +++ b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleCriteria.cs @@ -0,0 +1,5 @@ +namespace BotSharp.Abstraction.Rules; + +public interface IRuleCriteria +{ +} diff --git a/src/Infrastructure/BotSharp.Core.Rules/Engines/IRuleEngine.cs b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleEngine.cs similarity index 65% rename from src/Infrastructure/BotSharp.Core.Rules/Engines/IRuleEngine.cs rename to src/Infrastructure/BotSharp.Abstraction/Rules/IRuleEngine.cs index e2e025e6..c870f145 100644 --- a/src/Infrastructure/BotSharp.Core.Rules/Engines/IRuleEngine.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Rules/IRuleEngine.cs @@ -1,6 +1,4 @@ -using BotSharp.Abstraction.Models; - -namespace BotSharp.Core.Rules.Engines; +namespace BotSharp.Abstraction.Rules; public interface IRuleEngine { diff --git a/src/Infrastructure/BotSharp.Core.Rules/Actions/IRuleAction.cs b/src/Infrastructure/BotSharp.Core.Rules/Actions/IRuleAction.cs deleted file mode 100644 index 6361950b..00000000 --- a/src/Infrastructure/BotSharp.Core.Rules/Actions/IRuleAction.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace BotSharp.Core.Rules.Actions; - -public interface IRuleAction -{ -} diff --git a/src/Infrastructure/BotSharp.Core.Rules/Criterias/IRuleCriteria.cs b/src/Infrastructure/BotSharp.Core.Rules/Criterias/IRuleCriteria.cs deleted file mode 100644 index c65743ce..00000000 --- a/src/Infrastructure/BotSharp.Core.Rules/Criterias/IRuleCriteria.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace BotSharp.Core.Rules.Criterias; - -public interface IRuleCriteria -{ -} diff --git a/src/Infrastructure/BotSharp.Core.Rules/Triggers/IRuleConfig.cs b/src/Infrastructure/BotSharp.Core.Rules/Triggers/IRuleConfig.cs deleted file mode 100644 index e9d75733..00000000 --- a/src/Infrastructure/BotSharp.Core.Rules/Triggers/IRuleConfig.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace BotSharp.Core.Rules.Triggers; - -public interface IRuleConfig -{ -}