Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void AddMethodInformation(MethodInformation methodInformation)
 {
     _methodInformation.AddOrUpdate(methodInformation.Hash, methodInformation, (oldkey, oldvalue) => methodInformation);
 }