Пример #1
0
        private void ClientDecoded(ActiveClientEventArgs args)
        {
            var ctx = new ProtocolContext();

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