Skip to content

Commit

Permalink
trying endpoint fix for mono/csredis
Browse files Browse the repository at this point in the history
  • Loading branch information
Hüseyin Uslu committed Sep 2, 2014
1 parent 5f0ffb9 commit 12070a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CoiniumServ/Persistance/Providers/Redis/RedisProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
//
#endregion
using System;
using System.Net;
using CoiniumServ.Pools;
using CSRedis;
using Serilog;
Expand Down Expand Up @@ -51,8 +52,11 @@ private void Initialize()
{
try
{
// for mono compatibility, we need to define an endpoint.
var endpoint = new IPEndPoint(IPAddress.Parse(_config.Host), _config.Port);

// create the connection
Client = new RedisClient(_config.Host, _config.Port)
Client = new RedisClient(endpoint)
{
ReconnectAttempts = 3,
ReconnectWait = 200
Expand Down

0 comments on commit 12070a4

Please sign in to comment.