private static bool IsReconnecting(IConnection connection) { return connection.State == ConnectionState.Reconnecting; } }