locked
efficiently implmenting iorganizationservice? RRS feed

  • Question

  • Hello, do you have any advice for efficiently implementing IOrganizationService in CRM? For example, say you have a class where:

    Method1 => calls => Method2 => calls => Method3

    All 3 of these methods use IOrganization service.  You could pass IOrganizationService from Method1 to Method2 to Method3.  However, in this scenario, would it be more efficient to put logic in the constructor of the class to set IOrganizationService to a class instance variable on class creation?  Just wondering, if you know the most efficient implementation of IOrganizationService for this scenario, and wondering what implementation pattern you typically use, for this type of scenario?

    Tuesday, November 12, 2013 5:53 PM