Adds integration test project for netcore3 and poc for crosswiring di container with msdi
This commit is contained in:
@@ -16,9 +16,9 @@ namespace Umbraco.Core.Composing.LightInject
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LightInjectContainer"/> with a LightInject container.
|
||||
/// </summary>
|
||||
protected LightInjectContainer(ServiceContainer container)
|
||||
public LightInjectContainer(ServiceContainer container)
|
||||
{
|
||||
Container = container;
|
||||
Container = ConfigureContainer(container);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -33,7 +33,12 @@ namespace Umbraco.Core.Composing.LightInject
|
||||
protected static ServiceContainer CreateServiceContainer()
|
||||
{
|
||||
var container = new ServiceContainer(new ContainerOptions { EnablePropertyInjection = false });
|
||||
ConfigureContainer(container);
|
||||
return container;
|
||||
}
|
||||
|
||||
private static ServiceContainer ConfigureContainer(ServiceContainer container)
|
||||
{
|
||||
// note: the block below is disabled, as it is too LightInject-specific
|
||||
//
|
||||
// supports annotated constructor injections
|
||||
|
||||
Reference in New Issue
Block a user