Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access...

Post on 29-Aug-2019

219 views 0 download

Transcript of Shared C# Mobile C# Server - developermarch.com · Shared C# codebase •100% native API access...

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

Azure App Service

Engage employees, partners and customers on any device at any time

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

Create a Mobile Service

MobileService = new MobileServiceClient(

"https://myapp.azurewebsites.net");

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>();

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;

}

Let’s add a Zero – Code Backend

Azure - EasyTables

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)

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

Let’s add a Scalable Backend

Don’t miss!Tomorrow @ 12 noon, Hall B

Up NextHall B

Get Started Todayxamairn.com/downloadtryappservice.azure.com/

github.com/xamarin

twitter.com/msdevindia

facebook.com/MicrosoftDeveloper.India

aka.ms/vsandxamarin

aka.ms/gettingstartedwithxama

rin

Booth #10

Thank you.

Nish Anil

Senior PM– Xamarin @ Microsoft

nish@microsoft.com @nishanil

Questions?

Gaurav Seth

TSP, Azure App Service Microsoft