public void ConfigurePolledMessageSource(IPollableMessageSource binding, string name) { foreach (var cconfigurer in _messageChannelConfigurers) { if (cconfigurer is IMessageChannelAndSourceConfigurer) { ((IMessageChannelAndSourceConfigurer)cconfigurer).ConfigurePolledMessageSource(binding, name); } } }
public void ConfigurePolledMessageSource(IPollableMessageSource binding, string name) { IBindingOptions bindingOptions = Options.GetBindingOptions(name); var contentType = bindingOptions.ContentType; var consumerOptions = bindingOptions.Consumer; if ((consumerOptions == null || !consumerOptions.UseNativeDecoding) && binding is DefaultPollableMessageSource source) { source.AddInterceptor( new InboundContentTypeEnhancingInterceptor(contentType)); } }