Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            this.elastiCacheClient = AWSClientFactory.CreateAmazonElastiCacheClient();

            try
            {
                //this.redisClient = new ServiceStackRedisClient(RedisEndpoint, Convert.ToInt32(RedisPort));
                this.redisClient = new StackExchangeRedisClient(RedisEndpoint, Convert.ToInt32(RedisPort));
            }
            catch (Exception ex) {
                MessageBox.Show(string.Format("Can't load redis Client! {0}", ex.Message), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            cmbUsers.DataSource    = users;
            cmbUsers.DisplayMember = "Name";
            cmbUsers.ValueMember   = "Id";
        }