Example #1
0
 private static RepositoryResolver GetInstance()
 {
     if (_instance == null)
     {
         _instance = new RepositoryResolver();
     }
     return(_instance);
 }
Example #2
0
        public virtual void Start(Action initializeUserRepository)
        {
            var container = RepositoryResolver.GetContainer();

            // 2. Configure the container (register)
            // See below for more configuration examples
            // container.RegisterCollection(typeof(IRepository), AppDomain.CurrentDomain.GetAssemblies());
        }
Example #3
0
 public static void ResetContainer()
 {
     _instance = new RepositoryResolver();
 }