Dictionary params & error handling

This commit is contained in:
Lars-Erik Aabech
2018-09-02 22:09:37 +02:00
committed by Lars-Erik Aabech
parent 70d93d4668
commit bc80affcf1
7 changed files with 69 additions and 15 deletions

View File

@@ -299,7 +299,7 @@ namespace Umbraco.Core.IO
var shadowWrapper = new ShadowWrapper(innerFs, "typed/" + alias, () => IsScoped());
// getting the fs from the container - see FileSystemsComposer
var fs = Current.Container.CreateInstance<TFileSystem>((IFileSystem) shadowWrapper);
var fs = Current.Container.CreateInstance<TFileSystem>(new Dictionary<string, object>{{ "wrapped", (IFileSystem) shadowWrapper }});
_wrappers.Add(shadowWrapper); // keeping a reference to the wrapper
return fs;
});