Changes ApplicationContext to expect arguments of DatabaseContext and ServiceContext for it to be
constructed. Changes DatabaseContext to not be a singleton. Changes ServiceContext not to be a singleton. Removed ServicesFactory. Updated unit tests to support new changes.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
using (new ReadLock(ResolversLock))
|
||||
{
|
||||
if (_resolver == null)
|
||||
throw new InvalidOperationException("Current has not been initialized. You must initialize Current before trying to read it.");
|
||||
throw new InvalidOperationException("Current has not been initialized on " + typeof(TResolver) + ". You must initialize Current before trying to read it.");
|
||||
return _resolver;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user