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; } - } -}