EventBus / EventHandler usage

Oct 12, 2010 at 4:38 PM


Need help here.

I have IFulfillmentProcessHandler which implements IEventHandler. I have multiple implementations of IFullfillmentProcessHandler (like Supplier1FullfillmentProcessHandler, Supplier2FullfillmentProcessHandler, etc as each supplier has different process for fulfilling order) and I need to dynamically select the correct implementation and execute it.

Any suggestion how I can implement this in Orchard?

Thanks & Regards,


Oct 12, 2010 at 7:58 PM

Either you need different sub interfaces, or you have to add a Category {get; set;} property to your interface, so that you can recognize a specific provider.