我过去常常用生命时间( Lifetime:瞬态)来注入/注册MediatR ServiceFactory。Net6.0时,我发现了一个错误:
InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.ServiceFactoryLifetime: Transient ImplementationType: MediatR.ServiceFactory': Unable to res
我试图在MediatR Framework4.6.2中使用Autofac运行.NET。}当我尝试使用这个api方法时,我会收到以下错误:在'Autofac.Core.Activators.Reflection.DefaultConstructorFinder‘中找到的“MediatR.Mediator”类型上的任何构造函数都不能用可用的服务和参数调用:\r\n不能解析构造函数’void.ctor(MediatR.ServiceFactory)的参数'MediatR.ServiceFactory s
Autofac.Core.Registration.ComponentNotRegisteredException was unhandled by user codeMessage=The requested service 'MediatR.IAsyncRequestHandlerSCA.Prospects.Core.Application.Prospect.Crear+Command, SCA.Prospects.Core.Application, Version=1.0.0.0, Culture=neutral, P
我正在将域事件放入CQRS应用程序中,我遇到了一个基本任务:如何在域项目中使用MediatR.INotification标记接口而不创建域依赖于基础设施。MyApp.Web - MediatR NuGet packages and DI here
- UI, etc.我目前在UI项目中安装了MediatR和MediatR .net核心DI包,它们使用.AddMediatR()与命令一起添加到DI中。要让MediatR处理我的域事件,需要用MediatR<