Merge branch 'dev' of https://github.com/dotnet-architecture/eShopOnContainers into dev
This commit is contained in:
commit
981f4e2730
@ -44,8 +44,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.Autof
|
|||||||
builder.Register<SingleInstanceFactory>(context =>
|
builder.Register<SingleInstanceFactory>(context =>
|
||||||
{
|
{
|
||||||
var componentContext = context.Resolve<IComponentContext>();
|
var componentContext = context.Resolve<IComponentContext>();
|
||||||
|
return t => { object o; return componentContext.TryResolve(t, out o) ? o : null; };
|
||||||
return t => componentContext.Resolve(t);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Register<MultiInstanceFactory>(context =>
|
builder.Register<MultiInstanceFactory>(context =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user