Merge pull request #1168 from tomy2105/1165-2.0-to-2.1-code-backward-compatibility-realted-to-IActivityTypeProvider
2.0 to 2.1 code backward compatibility related to IActivityTypeProvider
This commit is contained in:
commit
6462ce2f00
|
|
@ -1,3 +1,5 @@
|
|||
using System;
|
||||
|
||||
namespace Elsa.Metadata
|
||||
{
|
||||
public class ActivityDescriptor
|
||||
|
|
@ -19,6 +21,12 @@ namespace Elsa.Metadata
|
|||
public string Category { get; set; }
|
||||
public ActivityTraits Traits { get; set; }
|
||||
public string[] Outcomes { get; set; }
|
||||
[Obsolete("Use InputProperties instead.")]
|
||||
public ActivityInputDescriptor[] Properties
|
||||
{
|
||||
get => InputProperties;
|
||||
set => InputProperties = value;
|
||||
}
|
||||
public ActivityInputDescriptor[] InputProperties { get; set; }
|
||||
public ActivityOutputDescriptor[] OutputProperties { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,43 @@ using System.Linq;
|
|||
|
||||
namespace Elsa.Metadata
|
||||
{
|
||||
[Obsolete("Use ActivityInputDescriptor instead.")]
|
||||
public class ActivityPropertyDescriptor : ActivityInputDescriptor
|
||||
{
|
||||
public ActivityPropertyDescriptor() : base()
|
||||
{
|
||||
}
|
||||
|
||||
public ActivityPropertyDescriptor(
|
||||
string name,
|
||||
Type type,
|
||||
string uiHint,
|
||||
string label,
|
||||
string? hint = default,
|
||||
object? options = default,
|
||||
string? category = default,
|
||||
object? defaultValue = default,
|
||||
string? defaultSyntax = "Literal",
|
||||
IEnumerable<string>? supportedSyntaxes = default,
|
||||
bool? isDisabled = default)
|
||||
: base (
|
||||
name,
|
||||
type,
|
||||
uiHint,
|
||||
label,
|
||||
hint,
|
||||
options,
|
||||
category,
|
||||
0,
|
||||
defaultValue,
|
||||
defaultSyntax,
|
||||
supportedSyntaxes,
|
||||
isDisabled
|
||||
)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class ActivityInputDescriptor
|
||||
{
|
||||
public ActivityInputDescriptor()
|
||||
|
|
|
|||
Loading…
Reference in a new issue