Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Pole
  • src
  • Pole.Core
  • EventBus
  • EventHandler
  • IPoleEventHandler.cs
Find file
BlameHistoryPermalink
  • dingsongjie's avatar
    完成 基本测试 · 3ac920dd
    dingsongjie committed 5 years ago
    3ac920dd
IPoleEventHandler.cs 648 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
using Orleans;
using Pole.Core.EventBus.Event;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Pole.Core.EventBus.EventHandler
{
    public interface IPoleEventHandler<TEvent> : IPoleEventHandler
    {
        Task EventHandle(TEvent @event);
    }
    public interface IPoleBulkEventsHandler<TEvent> : IPoleEventHandler
    {
        Task BulkEventsHandle(List<TEvent> events);
    }
    public interface IPoleEventHandler : IGrainWithStringKey
    {
        public Task Invoke(EventBytesTransport transport);
        public Task Invoke(List<EventBytesTransport> transports);
    }
}