Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Forms + azure

896 vues

Publié le

My Slide deck from Xamarin Dev Days at Trivandrum

Publié dans : Logiciels
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Forms + azure

  1. 1. Amal Dev Forms + Azure Dev Days
  2. 2. About Me !!! Microsoft MVP 10+ years of professional experience Blogger Speaker Full Stack Web Developer in Microsoft Technologies Technical Analyst with UST Global
  3. 3. We Apps! 189M downloads a day 200 mins on phone 127 mins in apps
  4. 4. The average app user has 36 apps installed on his or her phone.
  5. 5. Only 1/4 are used daily:
  6. 6. 1/4 of apps are never used!
  7. 7. Bad App Experiences
  8. 8. Always Connected ?
  9. 9. http://opensignal.com/coverage-maps
  10. 10. Offline Storage to your rescue !!!
  11. 11. What about a backend ?
  12. 12. PlentyofOptions
  13. 13. Infrastructure designed for Scale 100+ datacenters Top 3 networks in the world 2x AWS, 6x Google DC Regions G Series – Largest VM in World 32 cores, 448GB RAM, SSD…. Operational Announced * Operated by 21Vianet Azure compute regions open today More than AWS and Google Cloud combined Datacenters recently added in Canada and India
  14. 14. Why Azure ? • Extremely Powerful • Flexible • Easy Tables • App Service • C# SDKs available everywhere. • C#-iOS, Android & Windows with Xamarin • C# clients, written by C# developers(open source) • C# backend with ASP.NET
  15. 15. Shared C# codebase • 100% native API access • High performance iOS C# UI Android C# UI Windows C# UI Azure Linux/Mono CoreCLR Shared C# Mobile C# Server Shared C# Client/Server Xamarin Apps + Backend Services
  16. 16. RESTAPI AzureMobileApps Facebook Twitter Microsoft Google Azure Active Directory WindowsAndroid Chrome iOS OSX In-AppKindle Backend code SQL Tables O365 Offline Sync Offline sync
  17. 17. Mobile Offline Sync
  18. 18. How offline sync works
  19. 19. Let’s add a backend
  20. 20. Create a MobileService MobileService = new MobileServiceClient( "https://myapp.azurewebsites.net");
  21. 21. Create Tables IMobileServiceSyncTable<TodoItem> syncTable; public async Task Init() { const string path = "syncstore.db"; var db = new MobileServiceSQLiteStore(path); db.DefineTable<TodoItem>(); await MobileService.SyncContext.InitializeAsync(db); syncTable = MobileService.GetSyncTable<TodoItem>(); }
  22. 22. Push and pull with synctable private async Task SyncAsync() { await MobileService.SyncContext.PushAsync(); var query = syncTable.CreateQuery(); await syncTable.PullAsync("todoItems", query); } private async Task InsertTodoItem(TodoItem todoItem) { await syncTable.InsertAsync(todoItem); await MobileService.SyncContext.PushAsync(); }
  23. 23. Query localtable public async Task<IEnumerable<TodoItem>> GetOpenItemsAsync() { return await todoTable .Where(item => item.Complete == false) .ToEnumerableAsync(); }
  24. 24. DEMO
  25. 25. Thank You Read my blogs at www.techrepository.in Read my tweets @amaldevv

×