protected BaseRTMPProtocol()
{
//var sendMessagesBlock = new ActionBlock<Tuple<AmfMessage, bool>[]>(messages =>
//{
// foreach (var amfMessage in messages)
// {
// _rtmpProtocolSerializer.Serialize(GetChannel(amfMessage.Item1.ChannelId), amfMessage.Item1, OutputBuffer,
// _outboundChunkSize);
// if(amfMessage.Item2)amfMessage.Item1.Body.Recycle();
// _txInvokes++;
// }
// EnqueueForOutbound(OutputBuffer);
//},new ExecutionDataflowBlockOptions() {TaskScheduler = Cesp.ExclusiveScheduler });
//SendMessagesBlock.LinkTo(sendMessagesBlock);
}