Пример #1
0
        /// <summary>
        /// Implements a modification or extension of the client across an endpoint.
        /// </summary>
        /// <param name="endpoint">
        /// The endpoint that is to be customized.
        /// </param>
        /// <param name="clientRuntime">
        /// The client runtime to be customized.
        /// </param>
        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
        {
            if (clientRuntime == null)
            {
                throw new ArgumentNullException(nameof(clientRuntime));
            }
            var fmm = new FaultMessageHeaderMinifier();

            clientRuntime.MessageInspectors.Add(fmm);
        }
Пример #2
0
        /// <summary>
        /// Implements a modification or extension of the client across an endpoint.
        /// </summary>
        /// <param name="endpoint">
        /// The endpoint that is to be customized.
        /// </param>
        /// <param name="clientRuntime">
        /// The client runtime to be customized.
        /// </param>
        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
        {
            var fmm = new FaultMessageHeaderMinifier();

            clientRuntime.MessageInspectors.Add(fmm);
        }