csharpdeeb25a2 | 1 | namespace CascadeIDE.Contracts; |
| 2 | |
| 3 | /// <summary> |
| 4 | /// Тип подписывается на события домена через интерфейс шины данных IDE (<c>IDataBus</c>) или через helper, который делает <c>Subscribe</c>. |
| 5 | /// </summary> |
| 6 | /// <remarks>Поиск: <c>[DataBusSubscriber]</c>. См. также <see cref="DataBusPublisherAttribute"/>.</remarks> |
| 7 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, |
| 8 | Inherited = false, |
| 9 | AllowMultiple = false)] |
| 10 | public sealed class DataBusSubscriberAttribute : Attribute |
| 11 | { |
| 12 | public DataBusSubscriberAttribute() |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | public DataBusSubscriberAttribute(string note) => Note = note; |
| 17 | |
| 18 | public string? Note { get; } |
| 19 | } |
| 20 | |
View only · write via MCP/CIDE