Ejemplo n.º 1
0
 private void LogBuffer(byte[] bytes, int start, int size)
 {
     if (_logger != null && _logger.IsTraceEnabled())
     {
         _logger?.Trace("S: {0}", bytes.ToHexString(start, size));
     }
 }
Ejemplo n.º 2
0
 private void LogStream(MemoryStream stream)
 {
     if (_logger != null && _logger.IsTraceEnabled())
     {
         var buffer = stream.ToArray();
         _logger?.Trace("C: {0}", buffer.ToHexString(0, buffer.Length));
     }
 }
Ejemplo n.º 3
0
 public bool IsTraceEnabled()
 {
     return(_delegate != null && _delegate.IsTraceEnabled());
 }