From 86e638456510118fd725b5be9d283cedd22aeca4 Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Sun, 5 May 2024 15:27:07 +0800 Subject: [PATCH 1/2] Fix the expression of tenant profile cannot be searlized issue. --- .../OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs b/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs index 95cb72a6f80..a7c7a8e0261 100644 --- a/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs +++ b/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs @@ -9,7 +9,7 @@ public class FeatureProfile public string Name { get; set; } - public List FeatureRules = []; + public List FeatureRules { get; set; } = []; } public class FeatureRule From 049d647072f99a3b1760256b709e69af61c97fd5 Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Mon, 6 May 2024 11:30:13 +0800 Subject: [PATCH 2/2] declare as properties in case we need to searlize them. --- .../Documents/VolatileDocumentManager.cs | 2 +- .../OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs b/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs index edb20522515..ea25f1b156d 100644 --- a/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs +++ b/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs @@ -116,7 +116,7 @@ private sealed class UpdateDelegates { public UpdateDelegate UpdateDelegateAsync; public AfterUpdateDelegate AfterUpdateDelegateAsync; - public HashSet Targets = []; + public HashSet Targets { get; set; } = []; } } } diff --git a/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs b/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs index 53efa216426..cb8ee8d6001 100644 --- a/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs +++ b/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs @@ -12,6 +12,6 @@ public class XmlRpcContext public IUrlHelper Url { get; set; } public XRpcMethodCall RpcMethodCall { get; set; } public XRpcMethodResponse RpcMethodResponse { get; set; } - public ICollection Drivers = []; + public ICollection Drivers { get; set; } = []; } }