Exemple #1
0
 protected override void OnReceived(EndPoint endPoint, ReadOnlySpan <byte> buffer)
 {
     _logger.Verbose(
         "Handling OnReceived " +
         $"(EndPoint='{endPoint}', " +
         $"Data='{BitConverter.ToString(buffer.ToArray())}')."
         );
     if (buffer.Length > 0)
     {
         _messageSource.Signal(Session, buffer);
     }
     ReceiveAsync();
 }