public JavaClientControl() { ServerCommunicationRealize.GetInitialize().DataReceived += JavaClientControl_DataReceived; }
/// <summary> /// 发送数据 /// </summary> /// <param name="code">功能码</param> /// <param name="bs">正文</param> /// <returns></returns> public async Task SendDataToJava(short code, byte[] bs) { WriteLogRealize.GetInstance().WriteTo_rTxtJavaCode(true, code, bs); await ServerCommunicationRealize.GetInitialize().Send(code, bs); }