private async Task <bool> ProcessEvent(string eventName, string message) { var processed = false; if (_evSubscriptionManager.HasSubscriptions(eventName)) { using (var scope = _provider.CreateScope()) { var subscriptions = _evSubscriptionManager.GetHandlers(eventName); foreach (var subscription in subscriptions) { await subscription.Handle(message, scope); } } processed = true; } return(processed); }