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"; +}