Last post Jul 29, 2017 03:59 PM by PatriceSc
Jul 29, 2017 08:41 AM|mark-1961|LINK
I am tasked with bug fixing on an application and one issue is that data changes are not being saved to the database.
The method that is called to update the database is not calling the Handle method as the below query is not returning anything, hence the code in the loop is never being called...
_assemblies contains 1 assembly reference, namely - "System.Web, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
var query = from a in __assemblies
from t in a.GetTypes()
List<Type> commandHandlerTypes = query.ToList();
foreach (var commandHandlerType in commandHandlerTypes)
var handler = (ICommandHandler<TCommand>)Activator.CreateInstance(commandHandlerType);
Jul 29, 2017 03:59 PM|PatriceSc|LINK
IMO is is rather intended to scan a user assembly. Have you tried to search if you have classes implementing ICommandHandler<T> in the user code.