DotNetWorkQueue.Transport.Redis.RedisConnectionInfo.ValidateConnection C# (CSharp) Method

ValidateConnection() private method

Validates the connection string and determines the value of the server property
Connection strings that are in an invalid format will cause an exception
private ValidateConnection ( string value ) : void
value string The value.
return void
        private void ValidateConnection(string value)
        {
            //validate that the passed in string parses as a redis connection string
            var options = ConfigurationOptions.Parse(value);
            _server = string.Join(",", options.EndPoints.Select(endpoint => endpoint.ToString()).ToList());
        }
    }