Fix port, tests

This commit is contained in:
Stephan
2018-03-28 11:28:32 +02:00
parent 0d22478186
commit 0ecc333a90
29 changed files with 121 additions and 132 deletions

View File

@@ -36,8 +36,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
public static SafeXmlReaderWriter Get(IScopeProvider scopeProvider)
{
var scopeContext = scopeProvider.Context;
return scopeContext?.GetEnlisted<SafeXmlReaderWriter>(EnlistKey);
return scopeProvider?.Context?.GetEnlisted<SafeXmlReaderWriter>(EnlistKey);
}
public static SafeXmlReaderWriter Get(IScopeProvider scopeProvider, AsyncLock xmlLock, XmlDocument xml, Action<XmlDocument> refresh, Action<XmlDocument, bool> apply, bool writer)