More in this section
Forums / Developing with Sitefinity / GetManager Singleton

GetManager Singleton

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Joshua
    Joshua avatar
    4 posts
    Registered:
    07 Feb 2015
    27 Jan 2017
    Link to this post

    When I call DynamicModuleManager.GetManager(), is this implemented as a singleton?

    For example, if I call this in two different classes/methods, is it returning the same instance?

    I ask because I have a repository base class that internally calls GetManager and exposes a get property for accessing the DynamicModuleManager.  Now, I am calling multiple instances of different repositories, inserting records, and I would like to know at that point if it is safe to call SaveChanges once for all repositories, or if I will have to call it for each repository.

  2. Joshua
    Joshua avatar
    4 posts
    Registered:
    07 Feb 2015
    22 Feb 2017
    Link to this post
    So, no one can confirm if this is a singleton?  Ive since worked out my code another way, but it would still be nice to know beyond my own assumption that it likely might be.
2 posts, 0 answered