Exemplo n.º 1
0
        private void ClientDecoded(ActiveClientEventArgs args)
        {
            var ctx = new ProtocolContext();

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