Esempio n. 1
0
        private void SetEndPoints(ConfigurationOptions options)
        {
            var endPoints = new EndPointCollection();

            BedrockConfiguration.Cache.Redis.EndPoints.Each(ep => endPoints.Add(ep.Host, ep.Port));

            options
            .GetType()
            .GetField("endpoints", BindingFlags.Instance | BindingFlags.NonPublic)
            .SetValue(options, endPoints);
        }