var Host = "192.168.1.59";
using (var sentinel = new RedisSentinelManager("192.168.1.59:6389", "192.168.1.59:7389", "192.168.1.59:7390"))
{
sentinel.Add(Host); // add host using default port
sentinel.Add(Host, 26389); // add host using specific port
// sentinel.
// sentinel.Connected += (s, e) => sentinel.C; // this will be called each time a master connects
next line throw ERR unknown command 'ROLE'
sentinel.Connect("server-1M"); // open connection
var test2 = sentinel.Call(x => x.Time()); // use the Call() lambda to access the current master connection
}
var Host = "192.168.1.59"; using (var sentinel = new RedisSentinelManager("192.168.1.59:6389", "192.168.1.59:7389", "192.168.1.59:7390")) { sentinel.Add(Host); // add host using default port sentinel.Add(Host, 26389); // add host using specific port // sentinel. // sentinel.Connected += (s, e) => sentinel.C; // this will be called each time a master connects next line throw ERR unknown command 'ROLE'
sentinel.Connect("server-1M"); // open connection