IContainer is IRegister+IFactory

This commit is contained in:
Stephan
2018-11-28 11:05:41 +01:00
parent f290065bb6
commit 49a0b68b28
103 changed files with 814 additions and 3843 deletions

View File

@@ -21,7 +21,7 @@ namespace Umbraco.Web.Composing
try
{
// using the service locator here - no other way, really
Module = Current.Container.GetInstance<TModule>();
Module = Current.Factory.GetInstance<TModule>();
}
catch
{
@@ -31,7 +31,7 @@ namespace Umbraco.Web.Composing
try
{
runtimeState = Current.Container.GetInstance<IRuntimeState>();
runtimeState = Current.Factory.GetInstance<IRuntimeState>();
}
catch { /* don't make it worse */ }