/// <summary> /// Register message to send in a Redis data /// </summary> /// <param name="message"></param> /// <param name="myService"></param> static void RedisRegister(string message, IRedis myService) { myService.InsertDataAsync(new string[2] { "dataNumber", myService.GetNbDataAdded().ToString() }, myService.GetNbDataAdded()); myService.InsertDataAsync(new string[2] { "message", message }, myService.GetNbDataAdded()); myService.AddMessageToDict(message); myService.InsertDataAsync(new string[2] { "status", "send" }, myService.GetNbDataAdded()); myService.IncrNbDataAdded(); }