[UWP] [C#] await Dispatcher.RunAsync(CoreDispatcherPriority.Normal,()=& gt; {lock(this){是什么意思? [英] [UWP][C#]What is the meaning of await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { lock (this) {

查看:443
本文介绍了[UWP] [C#] await Dispatcher.RunAsync(CoreDispatcherPriority.Normal,()=& gt; {lock(this){是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好



我想知道这段代码的含义是什么。我正在尝试显示附近的BLE设备


  await Dispatcher.RunAsync(CoreDispatcherPriority.Normal,()=>

     ;   {

         lock(this)

          {


            ........ ...............


        }


      }


解决方案

Hi Shikhar,


请查看下面的文章,因为它有详细解释。希望这对你有帮助。


等待CoreDispatcher


Hi

I wanted to what is the meaning of this piece of code. I am trying to display nearby BLE devices

 await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                lock (this)
                {

                     .......................

                }

           }

解决方案

Hi Shikhar,

Please look into the below article as it has a details explanation. Hope this will help you.

Awaiting the CoreDispatcher


这篇关于[UWP] [C#] await Dispatcher.RunAsync(CoreDispatcherPriority.Normal,()=& gt; {lock(this){是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆