Ejemplo n.º 1
0
        /// <summary>
        /// Copy constructor
        /// </summary>
        /// <param name="sourceParameters">Source parameters</param>
        internal BobConnectionParametersBuilder(IModifiableBobConnectionParameters sourceParameters)
        {
            if (sourceParameters == null)
            {
                throw new ArgumentNullException(nameof(sourceParameters));
            }

            _customParameters = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase);
            Host = string.Empty;

            IModifiableBobConnectionParametersExtensions.CopyFrom(targetParameters: this, sourceParameters: sourceParameters);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Copy constructor
        /// </summary>
        /// <param name="sourceParameters">Source parameters</param>
        internal BobConnectionParameters(IModifiableBobConnectionParameters sourceParameters)
        {
            if (sourceParameters == null)
            {
                throw new ArgumentNullException(nameof(sourceParameters));
            }

            _customParameters = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase);
            _nodeAddress      = null;
            Host = string.Empty;

            IModifiableBobConnectionParametersExtensions.CopyFrom(targetParameters: this, sourceParameters: sourceParameters);
            IModifiableBobConnectionParametersExtensions.Validate(this, ValidationExceptionBehaviour.InvalidConnectionParametersException);
        }