Beruflich Dokumente
Kultur Dokumente
Synchronizing Life
Live
Framework .NET
API Kit
Agenda Live Services
Synchronizing Life
Libraries
.NET FX 3.5 Silverlight JavaScript Client Tools &
Web Controls …
APIs APIs APIs Controls Services
Resource Model
Developer
ATOM JSON POX RSS Binary XML Portal
AtomPub FeedSync
Resource Introspectio
CRUD Sync URI-LINQ Triggers Auth/Z Hosting
Scripts n
Core Data Communications App Model Provisioning
User Mesh / Account
Identity P2P Catalog Management
Folders News
Device Mesh Notifications Hosting
Photos Favorites
Applications Presence Mesh Applications
Contacts Lists
App Data & Settings
Profile Calendar Visual Studio
Application Tools /
System Management Designers
Mapping
Search
Live Framework
Live Services
Live Framework Client .NET Kit Synchronizing Life
Libraries
.NET FX 3.5 Silverlight JavaScript Client Tools &
Web Controls …
APIs APIs APIs Controls Services
Resource Model
Developer
ATOM JSON POX RSS Binary XML Portal
AtomPub FeedSync
Resource Introspectio
CRUD Sync URI-LINQ Triggers Auth/Z Hosting
Scripts n
Core Data Communications App Model Provisioning
User Mesh / Account
Identity P2P Catalog Management
Folders News
Device Mesh Notifications Hosting
Photos Favorites
Applications Presence Mesh Applications
Contacts Lists
App Data & Settings
Profile Calendar Visual Studio
Application Tools /
System Management Designers
Mapping
Search
Authenication
Web Applications Live Services
Synchronizing Life
• Authenticate as myself
– Use web authentication
– Web site has no access to my mesh
• Cloud Mesh
– App must get username and password
– Use those credentials to authenticate to
the cloud
Local or Cloud Connection? Live Services
Synchronizing Life
• Local connection
– Local data cache
– Use it when offline capability required
– Automatically syncs with the cloud
• Cloud connection
– No local data cache
– Use it when offline capability not needed
Live Framework .NET Kit Live Services
Synchronizing Life
• LiveOperatingEnvironment class
– Connect your application to the LOE
• Cloud Connection
NetworkCredential userCredentials = new
NetworkCredential(“Raymond@hotmail.com”, “ILOVEMHYMESH”);
LiveOperatingEnvironment loe =
LiveOperatingEnvironment .Connect(userCredentials);
• Local Connection
– Uses default user credentials
LiveOperatingEnvironment loe = LiveOperatingEnvironment.Connect();
Live Framework .NET Kit Live Services
Synchronizing Life
LiveOperatingEnvironment
NewsItems
Members
DataFeeds
DataEntries
Demo
Live Services
Synchronizing Life
• Contacts
foreach (Contact contact in loe.Contacts.Entries)
{
Console.WriteLine(contact.Resource.Title);
}
• Profiles
foreach (Profile profile in loe.Profiles.Entries)
{
Console.WriteLine(profile.Resource.Title);
}
• Mesh Objects
foreach (MeshObject mo in loe.Mesh.MeshObjects.Entries)
{
Console.WriteLine(mo.Resource.Title);
}
Demo
Live Services
Synchronizing Life
Enumerating Collections
Live Services
Synchronizing Life
Parameter Description
Orderby Sort the output by the values in the given element arg,
where arg is a string.
Skip Skip the first arg results, where arg is a positive integer.
Returns the second dozen MeshObject entries that are folders, and
sorts them by their Title element values.
Demo
Live Services
Synchronizing Life
Mesh Objects
Live Framework .NET Kit Live Services
Synchronizing Life
• Mesh Object
– Contains application metadata
– Fundamental unit of extensibility, sharing and
synchronization
– Can be replicated across a set of devices
– Can be shared among users and applications
– Contains:
• Members, Mapping, News, DataFeeds, Activities
LiveOperatingEnvironment
NewsItems
Members
DataFeeds
DataEntries
Live Framework .NET Kit Live Services
Synchronizing Life
• DataFeed
– Stores application information
• Metadata and blobs
– Receive update information
– Has Replication and synchronization capabilities
– A mesh object can have any number of data feeds
– Remember to add a DataFeed to a newly created
MeshObject
meshObject.DataFeeds.Add(ref newDataFeed);
Live Framework .NET Kit Live Services
Synchronizing Life
• DataEntry
– Data Entries and stored in a DataFeed
– Lowest level of storage in a mesh object
Resource Scripts
Resource Scripts Live Services
Synchronizing Life
• SequenceStatement
– Sequentially executes child statements
• InterleaveStatement
– Executes child statements in parallel
• ConditionalStatement
– If … Else … execution
• CRUD statements
– Operate on resources
Client vs Server Live Services
Synchronizing Life
Membeship
Live Framework .NET Kit Live Services
Synchronizing Life
• Members
– Represents a Windows Live ID’s
membership in the MeshObject.
– New members have to be invited to be
part of the Resource
– Has a role based on the object.
• Full, Author Writer, Reader
if (!meshObject.Members.IsLoaded)
meshObject.Members.Load();
Membership
Summary Live Services
Synchronizing Life
• Live Framework
– Allows you to integrate the cloud in a
cohesive and consistent way
– Enables you to move to the next inflection
point in the software industry
– .NET developers can use the client
Libraries to build their applications
• Start using it today, we want your
feedback !!
Call to action Live Services
Synchronizing Life