private void ClientDecoded(ActiveClientEventArgs args) { var ctx = new ProtocolContext(); ctx.ProtocolDatas.Add((ProtocolData)args.ProtocolData); ctx.SaveChanges(); }
private void ClientDecodeFailed(ActiveClientEventArgs args) { ReportService.Instance.Info($"客户端解码失败,设备地址:{args.SourceActiveClient.ClientAddress},设备ID号:{args.SourceActiveClient.ClientIdentity},异常信息:{args.ExceptionMessage}"); }
private void ClientAuthenticaFaild(ActiveClientEventArgs args) { ReportService.Instance.Info($"客户端授权失败,设备地址:{args.SourceActiveClient.ClientAddress},设备ID号:{args.SourceActiveClient.ClientIdentity}"); }