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