private MethodInformation AddMethodInformationToInterceptor(MethodInfo methodInfo, object returnValue = null) { Type[] parameters = methodInfo.GetParameters().Select(x => x.ParameterType).ToArray(); var methodInformation = new MethodInformation(methodInfo.Name, methodInfo.ReturnType, parameters, returnValue); _interceptor.AddMethodInformation(methodInformation); return(methodInformation); }
public void AddMethodInformation(MethodInformation methodInformation) { _methodInformation.AddOrUpdate(methodInformation.Hash, methodInformation, (oldkey, oldvalue) => methodInformation); }