Akka.Interfaced.NotificationHandlerBuilder.BuildGenericAsyncHandler C# (CSharp) Метод

BuildGenericAsyncHandler() приватный статический Метод

private static BuildGenericAsyncHandler ( Type targetType, Type invokePayloadType, MethodInfo method, FilterChain filterChain ) : NotificationAsyncHandler
targetType System.Type
invokePayloadType System.Type
method System.Reflection.MethodInfo
filterChain FilterChain
Результат NotificationAsyncHandler
        private static NotificationAsyncHandler BuildGenericAsyncHandler(
            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 BuildAsyncHandler(targetType, invokePayloadType, genericMethod, filterChain);
        }