Code snippet to call WCF RIA Methods
private void LoadExplorer(string path) { Web.Services.ExplorerContext context = new Web.Services.ExplorerContext(); EntityQuery query = context.EnumerateDirectoryQuery(path); Action<LoadOperation> completeProcessing = delegate(LoadOperation loadOp) { if (!loadOp.HasError) { // Perform actions required after request complete foreach (DirectoryInfoItem dirInfo in loadOp.Entities) { } } else { LogAndNotify(loadOp.Error); loadOp.MarkErrorAsHandled(); } }; LoadOperation loadOperation = context.Load(query, completeProcessing, null); } private void LogAndNotify(Exception error) { ErrorWindow.CreateNew(error); }