updates lightinject, adds method to create an LI container from an MSDI collection, updates a test

This commit is contained in:
Shannon
2020-03-13 11:13:47 +11:00
parent da58b7a743
commit 4cc20b06bc
14 changed files with 236 additions and 21 deletions

View File

@@ -83,9 +83,10 @@ namespace Umbraco.Web.BackOffice.AspNetCore
}
}
// TODO: This may need to take into account ~/ paths which means the ApplicationVirtualPath and is this the content root or web root?
public string MapPath(string path) => Path.Combine(_webHostEnvironment.WebRootPath, path);
// TODO: Need to take into account 'root' here
public string ToAbsolute(string virtualPath, string root)
{
if (Uri.TryCreate(virtualPath, UriKind.Absolute, out _))