Class ConventionEventRouter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Domain
Assembly: IRM.dll
Syntax
public class ConventionEventRouter : IRouteEvents
Constructors
ConventionEventRouter()
Initializes a new instance of the ConventionEventRouter class.
Declaration
public ConventionEventRouter()
ConventionEventRouter(Boolean)
Initializes a new instance of the ConventionEventRouter class.
Declaration
public ConventionEventRouter(bool throwIfNoHandlerIsFound)
Parameters
Boolean
throwIfNoHandlerIsFound
true to throw an exception if the handler could not be found; otherwise false. |
ConventionEventRouter(Boolean, String)
Initializes a new instance of the ConventionEventRouter class.
Declaration
public ConventionEventRouter(bool throwIfNoHandlerIsFound, string methodName)
Parameters
Boolean
throwIfNoHandlerIsFound
true to throw an exception if the handler could not be found; otherwise false. |
String
methodName
The convention name of the method that should handle the event. |
Methods
Dispatch(IEvent)
HasHandlerForEvent(Object)
Declaration
public bool HasHandlerForEvent(object event)
Parameters
Object
event
|
Returns
Boolean
|
Implements
HasHandlerForEvent(String)
Declaration
public bool HasHandlerForEvent(string eventType)
Parameters
String
eventType
|
Returns
Boolean
|
Implements
Register(Object)
Register<T>(Action<T>)
Declaration
public void Register<T>(Action<T> handler)
Parameters
System.Action<T>
handler
|
Type Parameters
T
|