Concurrency fix for EventBus

Prevent a possible race condition in  InMemoryEventBusSubscriptionsManager
This commit is contained in:
Stepan 2018-03-09 19:00:33 +03:00 committed by GitHub
parent d8d48ae188
commit caf16bc03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,10 +112,7 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus
private void RaiseOnEventRemoved(string eventName)
{
var handler = OnEventRemoved;
if (handler != null)
{
OnEventRemoved(this, eventName);
}
handler?.Invoke(this, eventName);
}