Download presentation
Presentation is loading. Please wait.
Published byTracy Robertson Modified over 9 years ago
1
Developing for Windows 8/WinRT Session 4 Fundamentals Kevin Stumpf
2
Agenda Async / Await Pattern WinRT API WinRT’s Security Model Q&A + Homework Assignment
3
Asynchronous execution Handle UI operations (Main Thread) Worker Thread II (CPU-intense business logic, e.g. calculating the square root of every prime number up to 17 trillion) Worker Thread I (IO operations, e.g. reading a 4GB file from disk) Synchronous execution Read something from disk Handle UI operations Download a File Handle UI operations
4
Task Unit of Work Asynchronous Simple and Flexible
5
precede method call only in async method on method declaration returns void or Task
6
WinRT API asynchronous private object oriented Hierarchical self-explanatory namespaces
7
Security System Capabilities Network (Client/Server)Shared Directories Documents Videos Pictures Music Hardware Webcam Microphone Proximity GPS App exposes Broker restricts Marketplace publishes
8
Homework Assignment Record a video with your webcam Play a preview in your application Save it to the “My Videos” folder *Have a ListBox that lists all the Pictures in your Pictures Library *Show a preview of a Picture when the user selects a ListBox entry *For you Hardcore guys!
9
Meet Danny Warren January 28 th for our 5 th session! SETTINGS AND SEARCH CONTRACT
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.