Пример #1
0
        protected override async Task OutgoingMessageAsync(string correlationId, string requestInfo, byte[] message)
        {
            await Task.Run(() =>
            {
                var msg = message != null && message.Length > 0
                    ? $"{Encoding.UTF8.GetString(message)}"
                    : string.Empty;
                GlobalContext.Properties["Conteudo"]  = msg;
                GlobalContext.Properties["RequestId"] = correlationId;

                Log4Net.InfoFormat("Response - IdRequisicao: {0} - Informações: {1}{2}", correlationId,
                                   requestInfo,
                                   msg);
            });
        }
 public void InfoFormat(string format, params object[] args)
 {
     Count(Level.Info); Log4Net.InfoFormat(format, args);
 }
 public void InfoFormat(string format, object arg0)
 {
     Count(Level.Info); Log4Net.InfoFormat(format, arg0);
 }
 public void InfoFormat(IFormatProvider provider, string format, params object[] args)
 {
     Count(Level.Info); Log4Net.InfoFormat(provider, format, args);
 }