From 023ef267b50d0211217a783da39698ddc38efe23 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sat, 30 Dec 2023 19:29:55 +0100 Subject: [PATCH] Add System.Runtime to CSharpOptions The System.Runtime assembly and namespace has been added to CSharpOptions. This extends the functionality capabilities within the Elsa.CSharp module by providing access to the Guid class and its related methods and properties. --- src/modules/Elsa.CSharp/Options/CSharpOptions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.CSharp/Options/CSharpOptions.cs b/src/modules/Elsa.CSharp/Options/CSharpOptions.cs index e45ce2a5ad..e473a9f4ea 100644 --- a/src/modules/Elsa.CSharp/Options/CSharpOptions.cs +++ b/src/modules/Elsa.CSharp/Options/CSharpOptions.cs @@ -27,7 +27,8 @@ public class CSharpOptions public ISet Assemblies { get; } = new HashSet(new[] { typeof(Globals).Assembly, // Elsa.CSharp - typeof(Enumerable).Assembly, // System.Linq, + typeof(Enumerable).Assembly, // System.Linq + typeof(Guid).Assembly, // System.Runtime typeof(IDictionary).Assembly, // System.Collections }); @@ -38,6 +39,7 @@ public class CSharpOptions { typeof(Globals).Namespace!, // Elsa.CSharp typeof(Enumerable).Namespace!, // System.Linq + typeof(Guid).Namespace!, // System typeof(IDictionary).Namespace!, // System.Collections.Generic });