From 44b07ddae0c76c6b05107a3252e22ced0fe4a28e Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 25 Feb 2024 13:26:55 +0100 Subject: [PATCH] Modify data types in WorkflowManagementFeature Expanded the primitive data types representations by adding int and float types in WorkflowManagementFeature. Removed the unused System.IO.Compression import to improve code cleanliness and maintainability. Closes #4971 --- .../Features/WorkflowManagementFeature.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs b/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs index e703e9444..b9a04daee 100644 --- a/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs +++ b/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs @@ -1,6 +1,6 @@ using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; using System.Dynamic; -using System.IO.Compression; using System.Reflection; using Elsa.Common.Contracts; using Elsa.Common.Features; @@ -62,8 +62,10 @@ public class WorkflowManagementFeature : FeatureBase new(typeof(object), PrimitivesCategory, "The root class for all object in the CLR System."), new(typeof(string), PrimitivesCategory, "Represents a static string of characters."), new(typeof(bool), PrimitivesCategory, "Represents a true or false value."), + new(typeof(int), PrimitivesCategory, "A 32 bit integer."), new(typeof(long), PrimitivesCategory, "A 64 bit integer."), - new(typeof(double), PrimitivesCategory, "A real number with double precision."), + new(typeof(float), PrimitivesCategory, "A 32 bit floating point number."), + new(typeof(double), PrimitivesCategory, "A 64 bit floating point number."), new(typeof(decimal), PrimitivesCategory, "A decimal number."), new(typeof(Guid), PrimitivesCategory, "Represents a Globally Unique Identifier."), new(typeof(DateTime), PrimitivesCategory, "A value type that represents a date and time."), @@ -91,6 +93,7 @@ public class WorkflowManagementFeature : FeatureBase /// /// Adds all types implementing to the system. /// + [RequiresUnreferencedCode("The assembly containing the specified marker type will be scanned for activity types.")] public WorkflowManagementFeature AddActivitiesFrom() { var activityTypes = typeof(TMarker).Assembly.GetExportedTypes() @@ -157,6 +160,7 @@ public class WorkflowManagementFeature : FeatureBase } /// + [RequiresUnreferencedCode("The assembly containing the specified marker type will be scanned for activity types.")] public override void Configure() { AddActivitiesFrom();