Fix issue Autofac IAsyncRequestHandler not registered with Mediatr 3.0
This commit is contained in:
parent
19647d8b7d
commit
0b510994a4
@ -45,7 +45,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.Autof
|
||||
{
|
||||
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