From 9a03c2aeab771af2ebd1e2670ee5b6d18c129201 Mon Sep 17 00:00:00 2001 From: dingsongjie Date: Mon, 24 Feb 2020 15:13:56 +0800 Subject: [PATCH] 去掉 eventhandlerattribute --- samples/apis/Backet.Api/EventHandlers/ToNoticeBacketCreatedEventHandler.cs | 1 - src/Pole.Core/EventBus/EventHandler/EventHandlerAttribute.cs | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100644 src/Pole.Core/EventBus/EventHandler/EventHandlerAttribute.cs diff --git a/samples/apis/Backet.Api/EventHandlers/ToNoticeBacketCreatedEventHandler.cs b/samples/apis/Backet.Api/EventHandlers/ToNoticeBacketCreatedEventHandler.cs index 649044d..072b9e4 100644 --- a/samples/apis/Backet.Api/EventHandlers/ToNoticeBacketCreatedEventHandler.cs +++ b/samples/apis/Backet.Api/EventHandlers/ToNoticeBacketCreatedEventHandler.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; namespace Backet.Api.EventHandlers { - [EventHandler(EventName = "Backet.Api.Domain.Event.BacketCreatedEvent")] public class ToNoticeBacketCreatedEventHandler : PoleEventHandler, IToNoticeBacketCreatedEventHandler { public Task BulkEventsHandle(List @event) diff --git a/src/Pole.Core/EventBus/EventHandler/EventHandlerAttribute.cs b/src/Pole.Core/EventBus/EventHandler/EventHandlerAttribute.cs deleted file mode 100644 index 949a37f..0000000 --- a/src/Pole.Core/EventBus/EventHandler/EventHandlerAttribute.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Pole.Core.EventBus.EventHandler -{ - [AttributeUsage(AttributeTargets.Class)] - public class EventHandlerAttribute: Attribute - { - public string EventName { get; set; } - } -} -- libgit2 0.25.0