public SerializationHelper(IAssemblyScanner scanner)
{
var knownMessages = scanner.GetMessageOptions();
foreach (var messageOptionse in knownMessages)
{
try
{
var fullName = messageOptionse.MessageType.FullName;
var idFromString = StringUtils.CreateIdFromString(fullName);
_messageTypeToId.Add(fullName, idFromString);
_messageTypeIdToMessageType.Add(idFromString, fullName);
}
catch (ArgumentException ex)
{
throw new ArgumentException("Problem while loading message type to message type id dictionary, two type names might have the same id");
}
}
}