Exemple #1
0
        public QueryStringFormatter(string operationName, ParameterInfo[] parameterInfos, IClientMessageFormatter innerClientFormatter, string action, EndpointAddress address)
        {
            if (operationName == null)
            {
                throw new ArgumentNullException("methodName");
            }

            if (parameterInfos == null)
            {
                throw new ArgumentNullException("parameterInfos");
            }

            if (innerClientFormatter == null)
            {
                throw new ArgumentNullException("innerClientFormatter");
            }

            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            if (address == null)
            {
                throw new ArgumentNullException("address");
            }

            QueryStringFormatter.ValidateSupportedType(parameterInfos);
            this.innerClientFormatter = innerClientFormatter;
            this.parameterInfos       = parameterInfos;
            this.operationName        = operationName;
            this.action  = action;
            this.address = address;
        }
Exemple #2
0
        public QueryStringFormatter(string operationName, ParameterInfo[] parameterInfos, IDispatchMessageFormatter innerDispatchFormatter)
        {
            if (operationName == null)
            {
                throw new ArgumentNullException("operationName");
            }

            if (parameterInfos == null)
            {
                throw new ArgumentNullException("parameterInfos");
            }

            if (innerDispatchFormatter == null)
            {
                throw new ArgumentNullException("innerDispatchFormatter");
            }

            QueryStringFormatter.ValidateSupportedType(parameterInfos);
            this.innerDispatchFormatter = innerDispatchFormatter;
            this.operationName          = operationName;
            this.parameterInfos         = parameterInfos;
        }