Skip to content

Commit a91514a

Browse files
authored
Merge pull request dotnet-architecture#540 from KoLogicDev/patch-1
Concurrency fix for EventBus
2 parents 9d7e119 + caf16bc commit a91514a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/BuildingBlocks/EventBus/EventBus/InMemoryEventBusSubscriptionsManager.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ public IEnumerable<SubscriptionInfo> GetHandlersForEvent<T>() where T : Integrat
115115
private void RaiseOnEventRemoved(string eventName)
116116
{
117117
var handler = OnEventRemoved;
118-
if (handler != null)
119-
{
120-
OnEventRemoved(this, eventName);
121-
}
118+
handler?.Invoke(this, eventName);
122119
}
123120

124121

0 commit comments

Comments
 (0)