<commit_before>﻿namespace Snippets4.Forwarding
{
    using System.Configuration;
    using NServiceBus.Config;
    using NServiceBus.Config.ConfigurationSource;

    #region ConfigurationSourceForMessageForwarding
    public class ConfigurationSource : IConfigurationSource
    {
        public T GetConfiguration<T>() where T : class, new()
        {
            //To Provide FLR Config
            if (typeof(T) == typeof(UnicastBusConfig))
            {
                UnicastBusConfig forwardingConfig = new UnicastBusConfig
                {
                    ForwardReceivedMessagesTo = "destinationQueue@machine"
                };

                return forwardingConfig as T;
            }

            // To in app.config for other sections not defined in this method, otherwise return null.
            return ConfigurationManager.GetSection(typeof(T).Name) as T;
        }
    }
    #endregion
}<commit_msg>Update ConfigurationSource.cs<commit_after>﻿namespace Snippets4.Forwarding
{
    using System.Configuration;
    using NServiceBus.Config;
    using NServiceBus.Config.ConfigurationSource;

    #region ConfigurationSourceForMessageForwarding
    public class ConfigurationSource : IConfigurationSource
    {
        public T GetConfiguration<T>() where T : class, new()
        {
            //To Provide UnicastBusConfig
            if (typeof(T) == typeof(UnicastBusConfig))
            {
                UnicastBusConfig forwardingConfig = new UnicastBusConfig
                {
                    ForwardReceivedMessagesTo = "destinationQueue@machine"
                };

                return forwardingConfig as T;
            }

            // To in app.config for other sections not defined in this method, otherwise return null.
            return ConfigurationManager.GetSection(typeof(T).Name) as T;
        }
    }
    #endregion
}
{'fraction_non_alphanumeric': 0.06691648822269808, 'fraction_numerical': 0.0010706638115631692, 'mean_word_length': 2.104651162790698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2555097', 'n_tokens_mistral': 459, 'n_tokens_neox': 435, 'n_words': 114}