Rajnish Noonia
Call WCF RIA Methods
Code snippet to call WCF RIA Methods
private void LoadExplorer(string path)
{
Web.Services.ExplorerContext context = new Web.Services.ExplorerContext();
EntityQuery<DirectoryInfoItem> query = context.EnumerateDirectoryQuery(path);
Action<LoadOperation<DirectoryInfoItem>> completeProcessing = delegate(LoadOperation<DirectoryInfoItem> loadOp)
{
if (!loadOp.HasError)
{
// Perform actions required after request complete
foreach (DirectoryInfoItem dirInfo in loadOp.Entities)
{
{
Web.Services.ExplorerContext context = new Web.Services.ExplorerContext();
EntityQuery<DirectoryInfoItem> query = context.EnumerateDirectoryQuery(path);
Action<LoadOperation<DirectoryInfoItem>> completeProcessing = delegate(LoadOperation<DirectoryInfoItem> loadOp)
{
if (!loadOp.HasError)
{
// Perform actions required after request complete
foreach (DirectoryInfoItem dirInfo in loadOp.Entities)
{
}
}
else
{
LogAndNotify(loadOp.Error);
loadOp.MarkErrorAsHandled();
}
};
LoadOperation<DirectoryInfoItem> loadOperation = context.Load(query, completeProcessing, null);
}
private void LogAndNotify(Exception error)
{
ErrorWindow.CreateNew(error);
}
Blog Summary
1 contributors have published
70 posts that generated
258 commentsCategories
- .Net Concepts (18)
- Architecture (8)
- Asp.Net (7)
- C# (22)
- COM (3)
- Forms (5)
- General (11)
- HTA (2)
- Javascript (3)
- RIA (6)
- Silverlight (26)
- SQL (5)
- Tips (11)
- Tools (1)
- VB 6.0 (2)
- VB.Net (2)
- VC++ (2)
- WCF (7)
- WPF (13)
Rajneesh On

















