-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: upgrade async and remove sync events
- Loading branch information
1 parent
a02dfe6
commit 6dc2706
Showing
7 changed files
with
46 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,12 @@ | |
/// </summary> | ||
public interface IEvent | ||
{ | ||
/// <summary> | ||
/// Subscribes to the async event. | ||
/// </summary> | ||
/// <param name="handler">The handler to be called when the async event is fired.</param> | ||
/// <returns>Event subscription reference</returns> | ||
IEventSubscription Subscribe(Func<Task> handler); | ||
|
||
/// <summary> | ||
/// Subscribes to the event. | ||
/// </summary> | ||
/// <param name="handler">The handler to be called when the event is fired.</param> | ||
/// <returns>Event subscription reference</returns> | ||
IEventSubscription Subscribe(Action handler); | ||
IEventSubscription Subscribe(Func<Task> handler); | ||
} | ||
|
||
/// <summary> | ||
|
@@ -29,18 +22,11 @@ public interface IEvent | |
/// <typeparam name="TArg">The argument expected by the event.</typeparam> | ||
public interface IEvent<out TArg> | ||
{ | ||
/// <summary> | ||
/// Subscribes to the async event. | ||
/// </summary> | ||
/// <param name="handler">The handler to be called when the async event is fired.</param> | ||
/// <returns>Event subscription reference</returns> | ||
IEventSubscription Subscribe(Func<TArg, Task> handler); | ||
|
||
/// <summary> | ||
/// Subscribes to the event. | ||
/// </summary> | ||
/// <param name="handler">The handler to be called when the event is fired.</param> | ||
/// <returns>Event subscription reference</returns> | ||
IEventSubscription Subscribe(Action<TArg> handler); | ||
IEventSubscription Subscribe(Func<TArg, Task> handler); | ||
} | ||
} | ||
Check warning on line 32 in src/KafkaFlow.Abstractions/IEvent.cs GitHub Actions / Deploy to GitHub Pages
|
12 changes: 0 additions & 12 deletions
12
src/KafkaFlow.Admin.Dashboard/Properties/launchSettings.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters