UWP Windows 10中的ControlChannelTrigger访问被拒绝
我正在尝试使用WebSockets使用ControlChannelTrigger实现后台任务。 在MSDN示例中,我在此处运行Windows 10桌面时遇到exception:
channel = new ControlChannelTrigger(channelId, serverKeepAliveInterval,ControlChannelTriggerResourceType)
例外是“访问被拒绝”
但是在Windows 10移动版中,此行已通过,并且在以下块的最后一行中出现exception访问被拒绝:
channel.UsingTransport(socket); var uri = new Uri(url); await socket.ConnectAsync(uri);
有什么解决方案吗?