コード例 #1
0
        protected HandlerMethod(HandlerMethod handlerMethod)
        {
            if (handlerMethod == null)
            {
                throw new ArgumentNullException(nameof(handlerMethod));
            }

            bean     = handlerMethod.bean;
            beanType = handlerMethod.beanType;
            method   = handlerMethod.method;
        }
コード例 #2
0
        protected HandlerMethod(HandlerMethod handlerMethod)
        {
            if (handlerMethod == null)
            {
                throw new ArgumentNullException(nameof(handlerMethod));
            }

            _handler    = handlerMethod.Handler;
            HandlerType = handlerMethod.HandlerType;
            Method      = handlerMethod.Method;
            _invoker    = handlerMethod.HandlerInvoker;
            _argCount   = handlerMethod.ArgCount;
        }
コード例 #3
0
        private HandlerMethod(HandlerMethod handlerMethod, object handler)
        {
            if (handlerMethod == null)
            {
                throw new ArgumentNullException(nameof(handlerMethod));
            }

            if (handler == null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            bean     = handler;
            beanType = handlerMethod.beanType;
            method   = handlerMethod.method;
            ResolvedFromHandlerMethod = handlerMethod;
        }
コード例 #4
0
        private HandlerMethod(HandlerMethod handlerMethod, object handler)
        {
            if (handlerMethod == null)
            {
                throw new ArgumentNullException(nameof(handlerMethod));
            }

            if (handler == null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            _handler    = handler;
            HandlerType = handlerMethod.HandlerType;
            Method      = handlerMethod.Method;
            _invoker    = handlerMethod.HandlerInvoker;
            _argCount   = handlerMethod.ArgCount;
            ResolvedFromHandlerMethod = handlerMethod;
        }