Пример #1
0
 public Type[] GetAllHandlerTypes()
 {
     return(_container.GetServiceRegistrations()
            .Where(sr => sr.ServiceType.IsMessageHandlerInterface())
            .Select(sr => sr.ServiceType)
            .ToArray());
 }