Akka.Interfaced.NotificationHandlerBuilder.BuildGenericHandler C# (CSharp) 메소드

BuildGenericHandler() 개인적인 정적인 메소드

private static BuildGenericHandler ( Type targetType, Type invokePayloadType, MethodInfo method, FilterChain filterChain ) : NotificationHandler
targetType System.Type
invokePayloadType System.Type
method System.Reflection.MethodInfo
filterChain FilterChain
리턴 NotificationHandler
        private static NotificationHandler BuildGenericHandler(
            Type targetType, Type invokePayloadType, MethodInfo method, FilterChain filterChain)
        {
            var argTypes = invokePayloadType.GetGenericArguments();
            var genericMethod = method.MakeGenericMethod(argTypes.Skip(argTypes.Length - method.GetGenericArguments().Length).ToArray());
            return BuildHandler(targetType, invokePayloadType, genericMethod, filterChain);
        }