Hi
I want to call event using below function.
foreach( int iKey in dicEvent.Keys)
{
IList<PriceReceivedEvent> lstPrice = dicMprEvent[iKey];
await context.Publish(new PriceReceivedListEvent() { PriceReceivedEvents = lstPrice.ToList() }).ConfigureAwait(false);
}
this class I created for event
public class PriceReceivedListEvent
{
public IList<PriceReceivedEvent> PriceReceivedEvents { get; set; }
}
and trying to call this handler.
public async Task Handle(PriceReceivedListEvent message, IMessageHandlerContext context)
{
IList<PriceReceivedEvent> lstPrices = message.PriceReceivedEvents;
}
what i am doing wrong. Please suggest.