From b07f56c39510d67e3f129d3f76697650259e1c21 Mon Sep 17 00:00:00 2001 From: movingsam Date: Tue, 3 Mar 2026 15:31:31 +0800 Subject: [PATCH] feat(03-01): add GwSessionAffinityConfig value object - Created session affinity configuration value object - Includes Enabled, Policy, AffinityKeyName fields - Supports Header and Cookie policies --- .../GwSessionAffinityConfig.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwSessionAffinityConfig.cs diff --git a/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwSessionAffinityConfig.cs b/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwSessionAffinityConfig.cs new file mode 100644 index 0000000..a6d70f4 --- /dev/null +++ b/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwSessionAffinityConfig.cs @@ -0,0 +1,22 @@ +namespace Fengling.Platform.Domain.AggregatesModel.GatewayAggregate; + +/// +/// 会话亲和配置(值对象) +/// +public class GwSessionAffinityConfig +{ + /// + /// 是否启用会话亲和 + /// + public bool Enabled { get; set; } + + /// + /// 策略:Header, Cookie + /// + public string Policy { get; set; } = "Header"; + + /// + /// 亲和键名称 + /// + public string AffinityKeyName { get; set; } = "X-Session-Key"; +}