locked
How to use dependency injection with NativeActivity RRS feed

  • Question

  • I need to access a method from a class in a different project from the NativeActivity Execute method override. How can I use DI to avoid newing up that class?
    Thursday, January 23, 2014 4:06 PM

Answers

  • Hi TPlyler

    According to your description above, you want to access method from a class in different project.

    To add a reference in Visual C#

    1.In Solution Explorer, right-click the project node and click Add Reference.<o:p></o:p>

    2.In the Add Reference dialog box, select the tab indicating the type of component you want to reference.

    3.Select the components you want to reference, and then click OK.<o:p></o:p>

    And then you can learn how to use dependency injection with workflow.

    Best regards

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Edited by Angie Xu Friday, January 24, 2014 2:05 AM
    • Marked as answer by Angie Xu Friday, February 7, 2014 1:49 AM
    Friday, January 24, 2014 2:04 AM