public void StopPush(CommandDto commandDto) { ChannelPusher channelPusher = ChannelPusherService.GetChannelPusherById(commandDto); if (channelPusher != null) { channelPusher.CTS.Cancel(); PushAMsgIn(commandDto.ChanneId, commandDto.Id, $"推流日志:发送停止命令完毕.", LiveStateType.Stoped); ChannelPusherService.RemoveChannelPusher(channelPusher); //重新序列化命令组 SerializationCommangs(); } }