Commits

Mike Podonyi committed c1f3f9e

GetDIContainer is more a property then a method

  • Participants
  • Parent commits 78ac64f

Comments (0)

Files changed (2)

File src/Empi.Camino/DIContainer.cs

             Initialize();
         }
 
-        internal static DIContainer GetDIContainer()
+        internal static DIContainer GetDIContainer
         {
-            return DataStoreFactory.GetApplicationDataStore.LazyGet<DIContainer>("DIContainer", () => new DIContainer());
+            get
+            {
+                return DataStoreFactory.GetApplicationDataStore.LazyGet<DIContainer>("DIContainer", () => new DIContainer());
+            }
         }
 
         private void Initialize()

File src/Empi.Camino/Prototyping.cs

 
         private IFileResourceProvider GetFileRessourceProvider(string providerName)
         {
-            return DIContainer.GetDIContainer().Resolve<IFileResourceProvider>(providerName);
+            return DIContainer.GetDIContainer.Resolve<IFileResourceProvider>(providerName);
         }