public static bool NeedsReset(this RedisConnectionBase connection) { if (connection == null) { return(true); } if (connection.State != RedisConnectionBase.ConnectionState.Open) { return(connection.State != RedisConnectionBase.ConnectionState.Opening); } return(false); }
private static bool NeedsReset(RedisConnectionBase conn) { return(conn == null || (conn.State != RedisConnectionBase.ConnectionState.Open && conn.State != RedisConnectionBase.ConnectionState.Opening)); }
public static bool NeedsReset(this RedisConnectionBase connection) { return(connection == null || (connection.State != RedisConnectionBase.ConnectionState.Open && connection.State != RedisConnectionBase.ConnectionState.Opening)); }