mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Make all event notifications fail fast
--HG-- branch : dev
This commit is contained in:
parent
a1059de8bb
commit
3a4a4b7837
@ -21,11 +21,6 @@ namespace Orchard.Events {
|
||||
|
||||
|
||||
public IEnumerable Notify(string messageName, IDictionary<string, object> eventData) {
|
||||
// call ToArray to ensure evaluation has taken place
|
||||
return NotifyHandlers(messageName, eventData, false/*failFast*/).ToArray();
|
||||
}
|
||||
|
||||
public IEnumerable NotifyFailFast(string messageName, IDictionary<string, object> eventData) {
|
||||
// call ToArray to ensure evaluation has taken place
|
||||
return NotifyHandlers(messageName, eventData, true/*failFast*/).ToArray();
|
||||
}
|
||||
|
@ -4,6 +4,5 @@ using System.Collections.Generic;
|
||||
namespace Orchard.Events {
|
||||
public interface IEventBus : IDependency {
|
||||
IEnumerable Notify(string messageName, IDictionary<string, object> eventData);
|
||||
IEnumerable NotifyFailFast(string messageName, IDictionary<string, object> eventData);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user