/// <summary>
        /// Indicates that the user wants to use JSON serialization.
        /// </summary>
        /// <param name="serializer">The <see cref="JsonSerializer"/> to serialize messages with.</param>
        public static ChannelFactorySyntax.ISerializationSyntax JsonSerialization(this ChannelFactorySyntax.ITransportSyntax transportSyntax, JsonSerializer serializer)
        {
            ChannelState state = transportSyntax.State;

            state.Binding = new JTokenJsonBinding(serializer);

            return(state);
        }
        /// <summary>
        /// Indicates that the user wants to use JSON serialization.
        /// </summary>
        public static ChannelFactorySyntax.ISerializationSyntax JsonSerialization(this ChannelFactorySyntax.ITransportSyntax transportSyntax)
        {
            ChannelState state = transportSyntax.State;

            state.Binding = mJsonBinding;

            return(state);
        }