コード例 #1
0
        /// <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);
                }
            }
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataServiceClientMessageWriterSettingsShim"/> class.
 /// </summary>
 /// <param name="settings">The settings.</param>
 internal DataServiceClientMessageWriterSettingsShim(ODataMessageWriterSettingsBase settings)
 {
     Debug.Assert(settings != null, "settings != null");
     this.settings = settings;
 }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MessageWriterSettingsArgs"/> class.
        /// </summary>
        /// <param name="settings">The settings.</param>
        public MessageWriterSettingsArgs(ODataMessageWriterSettingsBase settings)
        {
            WebUtil.CheckArgumentNull(settings, "settings");

            this.Settings = settings;
        }