Ramón Tomás 7 years ago
parent
commit
3c6b4ad44e
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/Services/Ordering/Ordering.API/Infrastructure/AutofacModules/MediatorModule.cs

+ 2
- 3
src/Services/Ordering/Ordering.API/Infrastructure/AutofacModules/MediatorModule.cs View File

@ -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…
Cancel
Save