Show / Hide Table of Contents

Class ConventionEventRouter

Inheritance
Object
ConventionEventRouter
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
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)

Declaration
public void Dispatch(IEvent eventMessage)
Parameters
IEvent eventMessage

Implements
IRouteEvents.Dispatch(IEvent)

HasHandlerForEvent(Object)

Declaration
public bool HasHandlerForEvent(object event)
Parameters
Object event

Returns
Boolean

Implements
IRouteEvents.HasHandlerForEvent(Object)

HasHandlerForEvent(String)

Declaration
public bool HasHandlerForEvent(string eventType)
Parameters
String eventType

Returns
Boolean

Implements
IRouteEvents.HasHandlerForEvent(String)

Register(Object)

Declaration
public void Register(object eventHandler)
Parameters
Object eventHandler

Implements
IRouteEvents.Register(Object)

Register<T>(Action<T>)

Declaration
public void Register<T>(Action<T> handler)
Parameters
System.Action<T> handler

Type Parameters
T

Implements
IRouteEvents.Register<T>(Action<T>)

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX