public static string Dump()
{
var result = "Factories by id" + Environment.NewLine;
result += string.Join(Environment.NewLine, _factoriesById.Select(x => "\t" + x.Key + "\t" + x.Value));
result +=Environment.NewLine+ "Factories by protocol id" + Environment.NewLine;
result += string.Join(Environment.NewLine,
_factoriesByProtocolId.Select(x => "\t" + x.Key.TagToString() + "\t" + x.Value));
result += "Factories by chain name" + Environment.NewLine;
result += string.Join(Environment.NewLine,
_factoriesByChainName.Select(x => "\t" + x.Key + "\t" + x.Value));
return result + Environment.NewLine;
}
}