Wp8 2014
-
Upload
mauro-ghiani -
Category
Technology
-
view
262 -
download
0
description
Transcript of Wp8 2014
![Page 1: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/1.jpg)
Dotnetcampania.org
Windows Phone Applications
Local storage
![Page 2: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/2.jpg)
Dotnetcampania.org
Terra Activa
Mauro GhianiSr. Web Developer
Salvatore SorrentinoSr. Software Developer
![Page 3: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/3.jpg)
Dotnetcampania.org
Storia: windows mobile
![Page 4: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/4.jpg)
Dotnetcampania.org
Windows phone marketplace
![Page 5: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/5.jpg)
Dotnetcampania.org
![Page 6: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/6.jpg)
Dotnetcampania.org
Local Storage
Le applicazioni su Wp8 possono salvare i dati in un’area particolare chiamata Local Storage
Local Storage è un file system isolato in quanto ciascuna applicazione ha a disposizione soltanto la propria storage
Le altre applicazioni non possono accedere al mio “spazio”
![Page 7: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/7.jpg)
Dotnetcampania.org
Local Storage
Lo spazio Massimo allocabile per applicazione corrisponde allo spazio libero sul dispositivo
Quando l’applicazione viene disinstallata lo spazio viene liberato automaticamente.
Le altre applicazioni non possono accedere al mio “spazio”. Da qui il temine “isolata”.
![Page 8: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/8.jpg)
Dotnetcampania.org
Namespace: Windows.Storage
Windows Phone 8 aggiunge alle API il supporto per il paradigma async e await.
La cartella (folder) locale è collegata alla classe:ApplicationData.Current.LocalFolder
![Page 9: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/9.jpg)
Dotnetcampania.org
I files e i folders sono mappati a:
Folders: StorageFolder
Files: StorageFile class
![Page 10: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/10.jpg)
Dotnetcampania.org
L’ SDK include uno strumento per esplorare la local storage ed è a linea di commando.WP Power Tools • Funziona sia con gli emulatori che
con il device vero e proprio• http://wptools.codeplex.com/
Windows Phone Power Tools
![Page 11: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/11.jpg)
Dotnetcampania.org
Demo: Token Authentication
![Page 12: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/12.jpg)
Dotnetcampania.org
Come selezionare il “miglior“ metodo di autenticazione?
12
![Page 13: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/13.jpg)
Dotnetcampania.org
![Page 14: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/14.jpg)
Dotnetcampania.org
Certificati X.509 • Uso di certificati digitali prodotti da
una autorità “fidata” trusted Certificate Authority (e.g. VeriSign)
• Un Certificato Digitale (Digital Certificate) contiene le informazioni per affermare la propria identità:– Name– Serial number– Expiration dates– Certificate holder’s public key (used for
encrypting/decrypting messages and digital signatures)
– Digital signature of Certificate Authority (so recipient knows that the certificate is valid)
![Page 15: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/15.jpg)
Dotnetcampania.org
Web API
![Page 16: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/16.jpg)
Demo
![Page 17: Wp8 2014](https://reader035.fdocuments.us/reader035/viewer/2022070302/548215dfb4af9f21758b4598/html5/thumbnails/17.jpg)
Dotnetcampania.org
domande