private static void writeMessage(DealerSocket output, DistributedAppMessage appMessage) { output.SendFrame(appMessage.Id.ToString(), more: true); output.SendFrameEmpty(more: true); output.SendFrame(appMessage.Method ?? string.Empty, more: true); output.SendFrameEmpty(more: true); output.SendFrame(appMessage.Data, more: true); output.SendFrameEmpty(more: true); output.SendFrame(appMessage.RequestId.ToString()); }