internal static void PrepareFeedConnectionTesters(string address, string username, string password, IEnumerable <int> ports, ICollection <ConnectionTester> testers)
        {
            if (address == null)
            {
                throw new ArgumentNullException(nameof(address));
            }

            if (ports == null)
            {
                ports = Ports;
            }

            foreach (var element in ports)
            {
                var builder = new LrpConnectionStringBuilder
                {
                    Address  = address,
                    Port     = element,
                    Username = username,
                    Password = password
                };

                var tester = new ConnectionTester(builder);
                testers.Add(tester);
            }
        }
Exemple #2
0
        internal static void PrepareConnectionTesters(string address, string username, string password, IEnumerable <int> ports, ICollection <ConnectionTester> testers)
        {
            if (ports == null)
            {
                ports = Ports;
            }

            foreach (var element in ports)
            {
                var builder = new FixConnectionStringBuilder
                {
                    Address          = address,
                    SecureConnection = true,
                    Port             = element,
                    Username         = username,
                    Password         = password
                };

                var tester = new ConnectionTester(builder);
                testers.Add(tester);
            }

            foreach (var element in ports)
            {
                var builder = new FixConnectionStringBuilder
                {
                    Address          = address,
                    SecureConnection = false,
                    Port             = element,
                    Username         = username,
                    Password         = password
                };

                var tester = new ConnectionTester(builder);
                testers.Add(tester);
            }
        }
        internal static void PrepareFeedConnectionTesters(string address, string username, string password, IEnumerable<int> ports, ICollection<ConnectionTester> testers)
        {
            if (address == null)
                throw new ArgumentNullException(nameof(address));

            if (ports == null)
                ports = Ports;

            foreach (var element in ports)
            {
                var builder = new LrpConnectionStringBuilder
                {
                    Address = address,
                    Port = element,
                    Username = username,
                    Password = password
                };

                var tester = new ConnectionTester(builder);
                testers.Add(tester);
            }
        }
        internal static void PrepareConnectionTesters(string address, string username, string password, IEnumerable<int> ports, ICollection<ConnectionTester> testers)
        {
            if (ports == null)
                ports = Ports;

            foreach(var element in ports)
            {
                var builder = new FixConnectionStringBuilder
                {
                    Address = address,
                    SecureConnection = true,
                    Port = element,
                    Username = username,
                    Password = password
                };

                var tester = new ConnectionTester(builder);
                testers.Add(tester);
            }

            foreach (var element in ports)
            {
                var builder = new FixConnectionStringBuilder
                {
                    Address = address,
                    SecureConnection = false,
                    Port = element,
                    Username = username,
                    Password = password
                };

                var tester = new ConnectionTester(builder);
                testers.Add(tester);
            }
        }