GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]
 protected override Task Send(Message[] messages)
 {
     return Task.Factory.StartNew(msgs =>
         {
             var typedMessages = msgs as Message[];
             typedMessages.GroupBy(m => m.Source).ToList().ForEach(group =>
                 {
                     var source = group.Key;
                     var message = new RabbitMQMessage(group.ToArray());
                     _rabbitmqchannel.BasicPublish(_rabbitmqExchangeName, source, null, message.GetBytes());
                 });
         },
         messages);
 }
 protected override Task Send(Message[] messages)
 {
     return(Task.Factory.StartNew(msgs =>
     {
         var typedMessages = msgs as Message[];
         typedMessages.GroupBy(m => m.Source).ToList().ForEach(group =>
         {
             var source = group.Key;
             var message = new RabbitMQMessage(group.ToArray());
             _rabbitmqchannel.BasicPublish(_rabbitmqExchangeName, source, null, message.GetBytes());
         });
     },
                                  messages));
 }