mirror of https://github.com/abpframework/abp.git
8 changed files with 39 additions and 19 deletions
@ -1,7 +1,16 @@ |
|||||
namespace Volo.Abp.EventBus.Distributed |
using System; |
||||
|
|
||||
|
namespace Volo.Abp.EventBus.Distributed |
||||
{ |
{ |
||||
public interface IDistributedEventBus : IEventBus |
public interface IDistributedEventBus : IEventBus |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Registers to an event.
|
||||
|
/// Same (given) instance of the handler is used for all event occurrences.
|
||||
|
/// </summary>
|
||||
|
/// <typeparam name="TEvent">Event type</typeparam>
|
||||
|
/// <param name="handler">Object to handle the event</param>
|
||||
|
IDisposable Subscribe<TEvent>(IDistributedEventHandler<TEvent> handler) |
||||
|
where TEvent : class; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue