Hi, after I add several services I get the following error:
public class AppHost : AppHostBase {
public AppHost() : base("fkm",
typeof(UsersManagementServices).Assembly,
typeof(CatalogSrvice).Assembly,
typeof(DocumentService).Assembly) { }
...
}
System.Reflection.AmbiguousMatchException: ‘Could not register Request ‘fkm.ItemsAdd’ with service ‘fkm.CatalogSrvice’ as it has already been assigned to another service.
Each Request DTO can only be handled by 1 service.’
I do not understand what the problem is because DTO is used only in one service:
I don’t know what you’re asking, but I’m telling you why you’re getting that error message - it says you’re trying to use the same Request DTO across multiple Service implementations.
Are your Service Assemblies all in different Assemblies? i.e. are UsersManagementServices, CatalogSrvice, DocumentService all in different assemblies?