Jaa


云起龙骧系列课程(4) Live Services开发实战

本堂课程中,向您介绍了如何使用 Live Framework 框架构建基于 Live Mesh 平台的跨平台跨设备的应用,你可以使用 Live Framework 框架实现基于 HTML + JS, Silverlight 的应用,以及任何你熟悉的语言或者技术,比如 PHP, Flash, 等等。

在 RIA 的时代中,Silverlight/ Flash 等 RIA 应用给互联网用户带来了更加丰富的体验,本课程中重点介绍了如何将现有的 Silverlight 应用稍作修改,实现基于 Live Framework 的应用,从而托管为跨平台跨设备的应用。

基于Silverlight 的 Live Framework 应用的相关代码如下:

App.xaml.cs 中添加的 App_Load 方法如下:

    1:          public void App_Load(object sender, EventArgs e)
    2:          {
    3:              MeshApplicationService meshApp = 
    4:                  Application.Current.GetMeshApplicationService();
    5:              meshApp.Resource.Title = "App";
    6:              Mesh mesh = meshApp.LiveOperatingEnvironment.Mesh;
    7:              this.RootVisual = new Page();
    8:          }

App.xaml.cs 中的 Application_Startup 方法重定义如下:

    1:  private void Application_Startup(object sender, StartupEventArgs e)
    2:          {
    3:   
    4:              MeshApplicationService meshApp = 
    5:                  Application.Current.GetMeshApplicationService();
    6:              meshApp.LoadCompleted += new EventHandler(this.App_Load);
    7:              meshApp.Load();
    8:          }

你还可以在下面下载课程中使用的代码:

关于 Live Framework 中的 Resource Model,你可以参考下面的图例:

image

有关 Live Framework 的更多参考,除了 Live Framework SDK 之外,你还可以访问微软 PDC 网站课程,所有课程都可以下载视频和讲义:

BB04 Live Services: A Lap around the Live Framework and Mesh Services :

BB05 Live Services: Building Applications with the Live Framework.

BB06 Live Services: Mesh Services Architecture and Concepts

BB19 Live Services: Live Framework Programming Model Architecture and Insights

BB20 Live Services: Making your Application More Social: 1217

BB30 Live Services: Building Mesh-Enabled Web Applications Using the Live Framework  : 660

BB31 Live Services: FeedSync and Mesh Synchronization Services : 634

BB34 Live Services: Notifications, Awareness, and Communications.  : 543

BB35 Live Services: The Future of the Device Mesh: 1203

BB41 Live Services: What I Learned Building My First Mesh Application : 1597

BB51 Live Services: Programming Live Services Using Non-Microsoft Technologies : 651

你还可以在下面下载本次课程中的讲义: