MessageHandler <TMessage> GetHandler <TMessage>() where TMessage : IMessage { lock (locker) { return(resolver.GetHandler <TMessage>()); } }