construction based dependency injection for custom activities? RRS feed

  • Question

  • Are there any WF 4.0 hooks to wire up construction based dependency injection for custom activities?   



    public LookupActivity : Activity()

    private IProductDAL m_productDal;

    private IAuditDAL m_auditDal;

    public LookupActivity(IProductDAL pDal, IAuditDAL aDal)


    m_productDal = pDal;

    m_auditDal = aDal;


    Castle Windsor has a nice plugin for doing wcf service based construction injection: http://www.castleproject.org/container/facilities/trunk/wcf/index.html

    I was just curious if there was a good way to do something similar for Custom Activity dependencies.  Would help alot with unit testing.



    • Moved by Heena Yadav Wednesday, June 2, 2010 12:53 AM This question is for 4.0 WF. (From:.NET 3.0/3.5 Windows Workflow Foundation)
    Monday, May 10, 2010 7:52 PM


All replies