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
This commit is contained in:
parent
640e888e1a
commit
44b07ddae0
|
|
@ -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
|
|||
/// <summary>
|
||||
/// Adds all types implementing <see cref="IActivity"/> to the system.
|
||||
/// </summary>
|
||||
[RequiresUnreferencedCode("The assembly containing the specified marker type will be scanned for activity types.")]
|
||||
public WorkflowManagementFeature AddActivitiesFrom<TMarker>()
|
||||
{
|
||||
var activityTypes = typeof(TMarker).Assembly.GetExportedTypes()
|
||||
|
|
@ -157,6 +160,7 @@ public class WorkflowManagementFeature : FeatureBase
|
|||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[RequiresUnreferencedCode("The assembly containing the specified marker type will be scanned for activity types.")]
|
||||
public override void Configure()
|
||||
{
|
||||
AddActivitiesFrom<WorkflowManagementFeature>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue