Class ConsumerTypesProviderExtensions
- Namespace
- ReflectionEventing
- Assembly
- ReflectionEventing.dll
Provides extension methods for the IConsumerTypesProvider class.
public static class ConsumerTypesProviderExtensions
- Inheritance
-
ConsumerTypesProviderExtensions
- Inherited Members
Methods
GetConsumerTypes<TEvent>(IConsumerTypesProvider)
Gets the consumers for the specified event type.
public static IEnumerable<Type> GetConsumerTypes<TEvent>(this IConsumerTypesProvider provider)
Parameters
providerIConsumerTypesProvider
Returns
- IEnumerable<Type>
A collection of consumer types that can handle the specified event type.
Type Parameters
TEventThe type of the event to get the consumers for.