Table of Contents

Class HashedPolymorphicConsumerTypesProvider

Namespace
ReflectionEventing
Assembly
ReflectionEventing.dll

Provides a mechanism for retrieving types of event consumers based on a specific event type.

public class HashedPolymorphicConsumerTypesProvider : IConsumerTypesProvider
Inheritance
HashedPolymorphicConsumerTypesProvider
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

HashedPolymorphicConsumerTypesProvider(IDictionary<Type, IEnumerable<Type>>)

Provides a mechanism for retrieving types of event consumers based on a specific event type.

public HashedPolymorphicConsumerTypesProvider(IDictionary<Type, IEnumerable<Type>> consumers)

Parameters

consumers IDictionary<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

eventType Type

Returns

IEnumerable<Type>

A collection of consumer types that can handle the specified event type.