protected Message CreateMessage(MessageType type, NetDeliveryMethod delivery_method, Process <Buffer> process) { Message message = CreateMessage(delivery_method, type.GetDeliveryChannel()); Buffer buffer = message.GetBuffer(); buffer.ExecuteWrite(type); process(buffer); return(message); }