private static void HandleNotification <T>(ObjectResolver objectResolver, T message) where T : INotification { foreach (var handler in objectResolver.GetAll <IHandleNotifications <T> >()) { handler.Handle(message); } }