Exemplo n.º 1
0
        public Method(MethodType methodType, Endpoint endpoint, Action action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action", "action cannot be null.");
            }

            this.Initialize(methodType, endpoint);
            this.action = action;
        }
Exemplo n.º 2
0
        public Method(MethodType methodType, Endpoint endpoint, Action<IRequestMessage, IResponseMessage> action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action", "action cannot be null.");
            }

            this.Initialize(methodType, endpoint);
            this.requestResponseAction = action;
        }
Exemplo n.º 3
0
        protected void Initialize(MethodType methodType, Endpoint endpoint)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint", "endpoint cannot be null.");
            }

            this.MethodType = methodType;
            this.Endpoint = endpoint;
            this.Pipeline = new Pipeline();
        }