Guest User

Untitled

a guest
Jan 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4.  
  5. namespace Hornet.Core.Storage.EventBus
  6. {
  7. public interface IEventBus
  8. {
  9. string Name { get; }
  10. Task PublishAsync<T>(T @event) where T : class, IEvent;
  11. void Subscribe<T>(string subscription, Func<T, CancellationToken, Task> onMessage) where T : class, IEvent;
  12. }
  13. }
Add Comment
Please, Sign In to add comment