elsa-core/src/modules/Elsa.Activities.Jobs/Attributes/JobAttribute.cs
2022-08-10 16:02:53 +02:00

33 lines
983 B
C#

namespace Elsa.Activities.Jobs.Attributes;
[AttributeUsage(AttributeTargets.Class)]
public class JobAttribute : Attribute
{
public JobAttribute(string @namespace, string? category, string? description = default)
{
Namespace = @namespace;
Description = description;
Category = category;
}
public JobAttribute(string @namespace, string? description = default)
{
Namespace = @namespace;
Description = description;
Category = @namespace;
}
public JobAttribute(string @namespace, string? typeName, string? description = default, string? category = default)
{
Namespace = @namespace;
TypeName = typeName;
Description = description;
Category = category;
}
public string? Namespace { get; set;}
public string? TypeName { get; set;}
public string? Description { get; set;}
public string? DisplayName { get; set; }
public string? Category { get; set;}
}