How to configure Windsor to resolve IProcessBus instances
4 views
Skip to first unread message
Robert M.
unread,
Apr 5, 2008, 6:04:30 PM4/5/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to retlang-dev
Hi Mike,
Do you have any experiences related to configuring Windsor container
in order to resolve IProcessBus instances instead of using
ProcessContextFactory? The work ProcessContextFactory does is pretty
laborious and don't know how to "translate" it into Windsor steps.
Should I continue using ProcessContextFactory together with Windsor? I
have the feeling that IProcessContextFactory was created as default
factory in case that one does not uses a DI container in his app.
Thanks,
Robert
Mike Rettig
unread,
Apr 6, 2008, 11:39:18 AM4/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to retla...@googlegroups.com
I typically use the factory methods provided by ProcessContextFactory with the DI container.
Sometimes I use the base implementation directly, while other times I'll wrap the factory with my own implementation to provide logging and monitoring for each context created.
The components themselves don't reference the factory. The IProcessBus is injected through the constructor.
e.g.
public class MyEmailSender{ public MyEmailSender(IProcessBus bus, IEmailGateway gateway){...} }