Exemple #1
0
 /// <summary>
 /// Log send message
 /// </summary>
 /// <param name="text">Request send message</param>
 /// <param name="uniqueId">unique id for mapping response</param>
 protected virtual void LogSendMessage(string text, string uniqueId)
 {
     if (!string.IsNullOrEmpty(text))
     {
         var log = new Log
         {
             MessageText       = text,
             MessageQualifier  = (int)CommunicationLogEntryMessageQualifier.Send,
             Host              = this.HostName,
             ExternalReference = uniqueId,
             Category          = this.CommandName,
             MessageTrackingId = uniqueId + "." + this.CommandName
         };
         ComponentCtx.WriteInfo(log);
     }
 }