* Refactor Expressions model * Enable expression type filtering * Implement dynamic enablement of satelite dependencies
19 lines
516 B
C#
19 lines
516 B
C#
namespace Elsa.Features.Attributes;
|
|
|
|
/// <summary>
|
|
/// Specifies that the feature is enabled automatically when the specified feature is enabled.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
|
public class DependencyOfAttribute : Attribute
|
|
{
|
|
/// <inheritdoc />
|
|
public DependencyOfAttribute(Type type)
|
|
{
|
|
Type = type;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The type of the feature this feature is a dependency of.
|
|
/// </summary>
|
|
public Type Type { get; set; }
|
|
} |