I have the following Method:
void Register<T> where T : class {
_myList.Add(typeof(T))
}
Where _myList is a List<Type>
.
I now want to call a generic class for each Type:
cfg.ReceiveEndpoint("MyTestQueue", ec => {
_myList.ForEach(t => ec.ConfigureConsumer<GenericConsumer<typeof(T)>>(context);
});
Any idea how I can do that ?