Dictionary params & error handling
This commit is contained in:
committed by
Lars-Erik Aabech
parent
70d93d4668
commit
bc80affcf1
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user