Example #1
0
        /// <summary>
        /// StopNotify
        /// </summary>
        /// <param name="bytes"></param>
        private void StopNotify(Byte[] bytes)
        {
            //解析数据
            StopNotifyProtobuf stopNotifyProtobuf;

            try {
                stopNotifyProtobuf = StopNotifyProtobuf.Parser.ParseFrom(bytes);
            }catch (Exception exception) {
                LoggerModuleHelper.TryLog(
                    "Modules.WebSocketControlModule.StopNotify[Error]",
                    $"解析数据包时异常,{exception.Message}\n异常堆栈:{exception.StackTrace}");
                return;
            }
            //调用
            NotifyHelper.Stop(stopNotifyProtobuf);
        }