Пример #1
0
 public static Dispatcher StartNew(CancellationToken token)
 {
     var dispatcher = new SingleThreadDispatcher();
     PerspexLocator.Current.GetService<IPclPlatformWrapper>().PostThreadPoolItem(() =>
     {
         dispatcher.MainLoop(token);
     });
     return dispatcher;
 }
Пример #2
0
        public static Dispatcher StartNew(CancellationToken token)
        {
            var dispatcher = new SingleThreadDispatcher();

            PerspexLocator.Current.GetService <IPclPlatformWrapper>().PostThreadPoolItem(() =>
            {
                dispatcher.MainLoop(token);
            });
            return(dispatcher);
        }