Make all event notifications fail fast

--HG--
branch : dev
This commit is contained in:
Renaud Paquay 2010-12-04 14:09:29 -08:00
parent a1059de8bb
commit 3a4a4b7837
2 changed files with 0 additions and 6 deletions

View File

@ -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();
}

View File

@ -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);
}
}