NetCore: MSDI refactor remove IFactory & IRegister (#9308)
* Replace IFactory with IServiceProvider * Replace IRegister with IServiceCollection * Fix Rte.cshtml so the view can service locate. * Replace Composing Lifetime with MSDI ServiceLifetime * Remove ServiceProvider AddMultipleUnique extension * Remove Umbraco.Web.Composing.Current.Reset and any calls * Remove LightInject from net framework projects * Brought back a helper for setting MediaFileSystem underlying IFileSystem
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Configuration.Models;
|
||||
using Umbraco.Core.Models;
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
@@ -23,7 +24,7 @@ namespace Umbraco.Tests.PublishedContent
|
||||
{
|
||||
base.Compose();
|
||||
|
||||
Composition.RegisterUnique(_ => GetServiceContext());
|
||||
Composition.Services.AddUnique(_ => GetServiceContext());
|
||||
}
|
||||
|
||||
protected ServiceContext GetServiceContext()
|
||||
|
||||
Reference in New Issue
Block a user