| | | 1 | | namespace Elsa.Workflows.Attributes; |
| | | 2 | | |
| | | 3 | | [AttributeUsage(AttributeTargets.Class)] |
| | | 4 | | public class ActivityAttribute : Attribute |
| | | 5 | | { |
| | 0 | 6 | | public ActivityAttribute() |
| | | 7 | | { |
| | | 8 | | // Default constructor. |
| | 0 | 9 | | } |
| | | 10 | | |
| | 97256 | 11 | | public ActivityAttribute(string @namespace, string? category, string? description = default) |
| | | 12 | | { |
| | 97256 | 13 | | Namespace = @namespace; |
| | 97256 | 14 | | Description = description; |
| | 97256 | 15 | | Category = category; |
| | 97256 | 16 | | } |
| | | 17 | | |
| | 0 | 18 | | public ActivityAttribute(string @namespace, string? description = default) |
| | | 19 | | { |
| | 0 | 20 | | Namespace = @namespace; |
| | 0 | 21 | | Description = description; |
| | 0 | 22 | | Category = @namespace; |
| | 0 | 23 | | } |
| | | 24 | | |
| | 0 | 25 | | public ActivityAttribute(string @namespace, string? type, int version = 1, string? description = default, string? ca |
| | | 26 | | { |
| | 0 | 27 | | Namespace = @namespace; |
| | 0 | 28 | | Type = type; |
| | 0 | 29 | | Version = version; |
| | 0 | 30 | | Description = description; |
| | 0 | 31 | | Category = category; |
| | 0 | 32 | | } |
| | | 33 | | |
| | 144400 | 34 | | public string? Namespace { get; set; } |
| | 47140 | 35 | | public string? Type { get; set; } |
| | 108593 | 36 | | public int Version { get; set; } = 1; |
| | 108597 | 37 | | public string? Description { get; set; } |
| | 22591 | 38 | | public string? DisplayName { get; set; } |
| | 108340 | 39 | | public string? Category { get; set; } |
| | 19855 | 40 | | public ActivityKind Kind { get; set; } = ActivityKind.Action; |
| | | 41 | | } |