shared c# mobile c# server - developermarch.com · shared c# codebase •100% native api access...
TRANSCRIPT
![Page 1: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/1.jpg)
![Page 2: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/2.jpg)
![Page 3: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/3.jpg)
Shared C# codebase • 100% native API access • High performance
iOS C# UI Windows C# UIAndroid C# UI
Shared C# Mobile C# Server
Linux/Mono
CoreCLRAzure
Shared C# Client/Server
![Page 4: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/4.jpg)
![Page 5: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/5.jpg)
Azure App Service
![Page 6: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/6.jpg)
![Page 7: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/7.jpg)
![Page 8: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/8.jpg)
Engage employees, partners and customers on any device at any time
![Page 9: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/9.jpg)
REST A
PI
Offline sync
Facebook Twitter Microsoft Google Azure Active Directory
Azure Mobile Apps
WindowsAndroidChrome
iOS OSX
In-AppKindle
Backend code
SQL MongoTables O365 API Apps
Offline Sync
![Page 10: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/10.jpg)
Create a Mobile Service
MobileService = new MobileServiceClient(
"https://myapp.azurewebsites.net");
![Page 11: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/11.jpg)
Create TablesIMobileServiceSyncTable<Store> table;
public async Task Init()
{
const string path = "syncstore.db";
var db = new MobileServiceSQLiteStore(path);
db.DefineTable<Store>();
}
var handler = new MobileServiceSyncHandler();
await MobileService.SyncContext.InitializeAsync(db, h);
table = MobileService.GetSyncTable<Store>();
![Page 12: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/12.jpg)
Get and Modify Datapublic async Task<IEnumerable<Store>> GetStoresAsync()
{
await table.PullAsync("allStores", table.CreateQuery());
return await table.ToEnumerableAsync();
}
public async Task<Store> AddStoreAsync (Store store){
await table.InsertAsync (store);await table.PullAsync("allStores", table.CreateQuery());await MobileService.SyncContext.PushAsync();return store;
}
![Page 13: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/13.jpg)
Let’s add a Zero – Code Backend
Azure - EasyTables
![Page 14: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/14.jpg)
TableController
DomainManagerDTO
Mobile AppsDevice
Model
AutoMapper
SQL Database
MongoDB
Table Storage
Dynamics
Salesforce
Office 365
SAPUX for table generation and API generation (currently for
Node.js and Azure SQL databases)
![Page 15: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/15.jpg)
Shared C# codebase • 100% native API access • High performance
iOS C# UI Windows C# UIAndroid C# UI
Shared C# Mobile C# Server
Linux/Mono
CoreCLRAzure
Shared C# Client/Server
![Page 16: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/16.jpg)
![Page 17: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/17.jpg)
![Page 19: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/19.jpg)
Let’s add a Scalable Backend
![Page 20: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/20.jpg)
Don’t miss!Tomorrow @ 12 noon, Hall B
![Page 21: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/21.jpg)
Up NextHall B
![Page 22: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/22.jpg)
Get Started Todayxamairn.com/downloadtryappservice.azure.com/
![Page 23: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/23.jpg)
github.com/xamarin
twitter.com/msdevindia
facebook.com/MicrosoftDeveloper.India
aka.ms/vsandxamarin
aka.ms/gettingstartedwithxama
rin
Booth #10
![Page 24: Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access •High performance iOS C# UI Android C# UI Windows C# UI Shared C# Mobile C# Server](https://reader030.vdocuments.net/reader030/viewer/2022040217/5d67140b88c9931d358b91ff/html5/thumbnails/24.jpg)
Thank you.
Nish Anil
Senior PM– Xamarin @ Microsoft
[email protected] @nishanil
Questions?
Gaurav Seth
TSP, Azure App Service Microsoft