Live Framework Azure Service Platform Live Services Live





















- Slides: 21



Live Framework概要 Azure Service Platform & Live Services • Live Services: Azure Service Platform のビルディングブロックのひとつ Azure Service Platform Live Services . NET Services SQL Services … Windows Azure わんくま同盟 大阪勉強会 #31





Live Framework. CTP • Live Mesh Betaとは異なる開発者向 けLive Mesh Servicesを用意 – Live Framework. Client – Developer Sandbox • Mesh-enabled Webアプリケーシ ョン わんくま同盟 大阪勉強会 #31


Live Framework. Programming Live Frameworkによる開発 • Live Framework SDK and Tools –. NET Kit – Silverlight Kit – Java. Script Kit 低レベルな HTTPや XML/JSONを意識せずに プログラミング可能 • 各種ユーザー登録や環境準備が必要 Live Framework 検索 わんくま同盟 大阪勉強会 #31

Live Operating Environment Live Services Web Apps HTTP(S) Desktop Apps LOE Cloud http: //user. windows. net Mobile Apps Flash/ Ajax/SL Devices わんくま同盟 大阪勉強会 #31

Live Operating Environment LOE Live Services HTTP(S) Desktop Apps Mobile Apps Cloud Devices P 2 P HTTP Client LOE Local Cache http: //localhost: 2048 わんくま同盟 大阪勉強会 #31

LOEへの接続 • Live Framework. SDK DLLsを参照 var creds = new Network. Credential ("***@hotmail. com" , "password" ); var loe = new Live. Operating. Environment (); loe. Connect(creds, new Live. Item. Access. Options (true)); https: //user-ctp. windows. net/ or http: //localhost: 2048/ へアクセス わんくま同盟 大阪勉強会 #31


リソースモデル • Live Frameworkでは何がリソース? Service Endpoint Devices https: //userctp. windows. net/V 0. 1/Mesh. Objects Scripts Mesh Profiles Contacts Applications Mesh Objects News … … Data Feeds … … Data Entries … わんくま同盟 大阪勉強会 #31


リソースへアクセス • Devicesの一覧 foreach (var d in loe. Mesh. Devices. Entries) { Console. Write. Line(d. Resource. Title); } • Mesh Objectの一覧 foreach (var m in loe. Mesh. Objects. Entries) { Console. Write. Line(m. Resource. Title); } わんくま同盟 大阪勉強会 #31

Mesh Objectの作成 • Live Mesh Folderの作成 var folder = new Mesh. Object (); folder. Resource. Title = "新しいフォルダ "; folder. Resource. Type = "Live. Mesh. Folder" ; loe. Mesh. Objects. Add( ref folder); var file. System = new Data. Feed (); file. System. Resource. Title = "Live. Mesh. Files" ; file. System. Resource. Type = "Live. Mesh. Files" ; file. System. Resource. Handler. Type = "File. System" ; folder. Data. Feeds. Add( ref file. System); var fs = new System. IO. File. Stream (@"C: misao. png" , System. IO. File. Mode. Open); file. System. Data. Entries. Add(fs, "misao. png" , "image/png" ); fs. Close(); わんくま同盟 大阪勉強会 #31



まとめ • Live Framework概要 – Live Servicesへアクセスする統一的手法 • Live Mesh Services – Betaと開発者向け CTP • Live Framework. Programming –. NETなら楽ちん Enjoy Live Programming わんくま同盟 大阪勉強会 #31