Example #1
0
    /// <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)
    {
        int indexData = myService.GetCorrespondingDataIndex(message);

        //Mise à jour du status
        myService.InsertDataAsync(new string[2] {
            "status", "received"
        }, indexData);
        myService.InsertDataAsync(new string[2] {
            "date", GetCurrentDateTime()
        }, indexData);
    }
Example #2
0
 /// <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();
 }