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

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