App Hosting Options REST CSOM APIs Remote Event

  • Slides: 22
Download presentation

App Hosting Options REST & CSOM APIs Remote Event Receivers

App Hosting Options REST & CSOM APIs Remote Event Receivers

Provider-Hosted App Cloud-based Apps Get remote events from Share. Point Use CSOM/REST + OAuth

Provider-Hosted App Cloud-based Apps Get remote events from Share. Point Use CSOM/REST + OAuth to work with SP “Bring your own server hosting infrastructure” Autohosted App Windows Azure + SQL Azure provisioned invisibly as apps are installed Share. Point-Hosted App Provision an isolated sub web on a parent web • Reuse web elements (lists, files, out-of-box web parts) • No server code allowed; use client Java. Script for logic, UX Share. Point Web Your Hosted Site Share. Point Web Azure Parent Web App Web (from WSP)

Cloud Hosted Apps Share. Point Hosted Apps Preferred hosting model for almost all types

Cloud Hosted Apps Share. Point Hosted Apps Preferred hosting model for almost all types of apps Good for smaller apps & resource storage Full power of web – choose your infrastructure & technology Share. Point-based; no server-side code May require your own hosting Automatically hosted in Share. Point May require you own handling of multitenancy & permission management Inherent multitenancy & isolation

App Hosting Options REST & CSOM APIs Remote Event Receivers

App Hosting Options REST & CSOM APIs Remote Event Receivers

_api is new alias for _vti_bin/client. svc Server Client REST OData JSON CSOM Java.

_api is new alias for _vti_bin/client. svc Server Client REST OData JSON CSOM Java. Script Library Silverlight Library Custom Client Code . Net CLR Library

_vti_bin/client. svc _api

_vti_bin/client. svc _api

App Hosting Options REST & CSOM APIs Remote Event Receivers

App Hosting Options REST & CSOM APIs Remote Event Receivers

string url= "http: //contoso. com/Remote. Event. Service. svc"; using (SPSite site = new SPSite(site.

string url= "http: //contoso. com/Remote. Event. Service. svc"; using (SPSite site = new SPSite(site. Url)) { using (SPWeb web = site. Root. Web) { SPList list = web. Lists[list. Title]; list. Event. Receivers. Add( SPEvent. Receiver. Type. Item. Added, url); } }

http: //dev. office. com http: //www. devcamps. ms/office

http: //dev. office. com http: //www. devcamps. ms/office

My. SPC http: //myspc. sharepointconference. com

My. SPC http: //myspc. sharepointconference. com