private void OnError(object sender, RedisErrorEventArgs args) { var handler = ErrorMessage; handler(new InvalidOperationException(args.Message)); }
private void OnErrorMessage(object sender, RedisErrorEventArgs e) { _logger.Warn("An error message was received from the Redis server at {Endpoint}: {Message}", e.EndPoint, e.Message); }
private void RedisConnection_ErrorMessage(object sender, StackExchange.Redis.RedisErrorEventArgs e) { EnviarMensajes(REDIS_CLIENT, $"{nameof(RedisConnection_ErrorMessage) + " - El servidor notifica que hubo un error"}"); }
/// <summary> /// 发生错误时 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void MuxerErrorMessage(object sender, RedisErrorEventArgs e) { Console.WriteLine("ErrorMessage: " + e.Message); }