Class HashedConsumerTypesProvider
- Namespace
- ReflectionEventing
- Assembly
- ReflectionEventing.dll
Provides a mechanism for retrieving types of event consumers based on a specific event type.
public class HashedConsumerTypesProvider : IConsumerTypesProvider
- Inheritance
-
HashedConsumerTypesProvider
- Implements
- Inherited Members
- Extension Methods
Remarks
This class uses a dictionary of consumers where the key is the consumer type and the value is a collection of event types that the consumer can handle.
Constructors
HashedConsumerTypesProvider(IDictionary<Type, IEnumerable<Type>>)
Provides a mechanism for retrieving types of event consumers based on a specific event type.
public HashedConsumerTypesProvider(IDictionary<Type, IEnumerable<Type>> consumers)
Parameters
consumersIDictionary<Type, IEnumerable<Type>>
Remarks
This class uses a dictionary of consumers where the key is the consumer type and the value is a collection of event types that the consumer can handle.
Methods
GetConsumerTypes(Type)
Gets the consumer types for the specified event type.
public IEnumerable<Type> GetConsumerTypes(Type eventType)
Parameters
eventTypeType
Returns
- IEnumerable<Type>
A collection of consumer types that can handle the specified event type.