コード例 #1
0
 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);
 }
コード例 #2
0
 private static bool NeedsReset(RedisConnectionBase conn)
 {
     return(conn == null || (conn.State != RedisConnectionBase.ConnectionState.Open &&
                             conn.State != RedisConnectionBase.ConnectionState.Opening));
 }
コード例 #3
0
 public static bool NeedsReset(this RedisConnectionBase connection)
 {
     return(connection == null ||
            (connection.State != RedisConnectionBase.ConnectionState.Open &&
             connection.State != RedisConnectionBase.ConnectionState.Opening));
 }