Passed cancellation tokens to event handlers if needed
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
namespace HopFrame.Web.Plugins;
|
||||
using HopFrame.Web.Plugins.Events;
|
||||
|
||||
namespace HopFrame.Web.Plugins;
|
||||
|
||||
public interface IPluginOrchestrator {
|
||||
public Task<TEvent> DispatchEvent<TEvent>(TEvent @event, CancellationToken ct = new());
|
||||
public Task<TEvent> DispatchEvent<TEvent>(TEvent @event, CancellationToken ct = new()) where TEvent : HopFrameEventArgs;
|
||||
}
|
||||
Reference in New Issue
Block a user