示例#1
0
 static Dictionary <Type, CorrelationProperty[]> GetCorrelationProperties(Saga saga)
 {
     return(saga.GenerateCorrelationProperties()
            .ToLookup(p => p.MessageType)
            .ToDictionary(kvp => kvp.Key, kvp => kvp.ToArray()));
 }
示例#2
0
 static Dictionary<Type, CorrelationProperty[]> GetCorrelationProperties(Saga saga)
 {
     return saga.GenerateCorrelationProperties()
         .ToLookup(p => p.MessageType)
         .ToDictionary(kvp => kvp.Key, kvp => kvp.ToArray());
 }