Exemple #1
0
 ConsumerMetadataCache()
 {
     _consumerTypes = ConsumerConventionCache.GetConventions <T>()
                      .SelectMany(x => x.GetMessageTypes())
                      .Distinct((x, y) => x.MessageType == y.MessageType)
                      .ToArray();
 }
 ConsumerMetadataCache()
 {
     _consumerTypes = ConsumerConventionCache.GetConventions <T>()
                      .SelectMany(x => x.GetMessageTypes())
                      .GroupBy(x => x.MessageType)
                      .Select(x => x.Last())
                      .ToArray();
 }