Esempio n. 1
0
 public static void LogRequestMessage(string requestMessage, VerimatrixLogEntity entity)
 {
     try
     {
         if (!string.IsNullOrEmpty(requestMessage))
         {
             var key = requestMessage.GetMessageNumber();
             ConCurrentDic.TryAdd(key, entity);
         }
     }
     catch (Exception)
     {
         //Logger.Error(string.Format("Log request message to concurrent dictionary error:{0}", ex.Message));
     }
 }
Esempio n. 2
0
 private Dictionary <string, string> GetAsyncLogDictionary(VerimatrixLogEntity logEntity)
 {
     if (logEntity != null)
     {
         Dictionary <string, string> dict = new Dictionary <string, string>();
         dict.Add(IFEventPropertyNames.DEVICE_SERIAL_NUMBER, logEntity.serialNumber);
         dict.Add(IFEventPropertyNames.CUSTOMER_ID, logEntity.customerID);
         dict.Add(IFEventPropertyNames.EVENT_NUMBER, logEntity.eventNumber);
         dict.Add(IFEventPropertyNames.MSG_UTC, logEntity.eventTimeStamp);
         dict.Add(IFEventPropertyNames.HISTORY_ID, logEntity.histroyID);
         dict.Add(IFEventPropertyNames.USER_NAME, logEntity.userName);
         dict.Add(IFEventPropertyNames.PROV_EXT_CMD_ID, logEntity.externalCommandName);
         return(dict);
     }
     return(null);
 }
Esempio n. 3
0
 public VerimatrixLogHandler(IComponentContext context, VerimatrixResponse response, VerimatrixLogEntity entity)
 {
     this._response         = response;
     this._componentContext = context;
     this._entity           = entity;
 }