private MethodInfo GetActivationMethod(Type messageType) { MethodInfo method; if (activatorMethods.TryGetValue(messageType, out method)) { return(method); } method = activateHandlers.GetType() .GetMethod("GetHandlerInstancesFor") .MakeGenericMethod(messageType); activatorMethods[messageType] = method; return(method); }