Nop Commerce 3.60 and EventContext usage

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,

I'm trying to hook up to an event 'OrderPaid' however when I try to add event handler in Global.asax I'm getting following error : http://imgur.com/a/biZVe ( first image )

My code of the class that should handle the event looks like this : http://imgur.com/a/biZVe second image.

Can  you point me correct name space so the error will vanish or show me how to hook up to the events in NOP 3.60 and I need to hook up to Order Paid event.

Best Regards,
Lukas
7 years ago
Hi Lukas,

There's no such class as EventContext. In order to subscribe to this event you have to create a class (e.g. OrderPaidWhishlistHandler) which implements "IConsumer<OrderPaidEvent>" interface. And then implement "HandleEvent(OrderPaidEvent eventMessage)" method
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.