/// <summary>
        /// Called when [create message writer settings configurations].
        /// </summary>
        /// <param name="writerSettings">The writer settings.</param>
        internal void ExecuteWriterSettingsConfiguration(ODataMessageWriterSettingsBase writerSettings)
        {
            Debug.Assert(writerSettings != null, "writerSettings != null");

            if (this.messageWriterSettingsConfigurationActions.Count > 0)
            {
                MessageWriterSettingsArgs args = new MessageWriterSettingsArgs(new DataServiceClientMessageWriterSettingsShim(writerSettings));
                foreach (Action <MessageWriterSettingsArgs> configureWriterSettings in this.messageWriterSettingsConfigurationActions)
                {
                    configureWriterSettings(args);
                }
            }
        }
        /// <summary>
        /// Called when [create message writer settings configurations].
        /// </summary>
        /// <param name="writerSettings">The writer settings.</param>
        internal void ExecuteWriterSettingsConfiguration(ODataMessageWriterSettingsBase writerSettings)
        {
            Debug.Assert(writerSettings != null, "writerSettings != null");

            if (this.messageWriterSettingsConfigurationActions.Count > 0)
            {
                MessageWriterSettingsArgs args = new MessageWriterSettingsArgs(new DataServiceClientMessageWriterSettingsShim(writerSettings));
                foreach (Action<MessageWriterSettingsArgs> configureWriterSettings in this.messageWriterSettingsConfigurationActions)
                {
                    configureWriterSettings(args);
                }
            }
        }