Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8385461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:40:38+00:00 2026-06-09T17:40:38+00:00

I am trying to make RIA service calls from non UI thread. I made

  • 0

I am trying to make RIA service calls from non UI thread.
I made calls with opening new thread and with background workers, but for both cases callback is running on UI thread.
Is it possible to execute callback on callers thread, not UI?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:40:39+00:00Added an answer on June 9, 2026 at 5:40 pm

    tl;dr

    • Use WCF
    • Marshal your results to the UI thread yourself

    WCF RIA is built to do work on the UI thread

    WCF RIA was designed to work mostly on the UI thread. That obviously has many pros and cons; mostly cons in your case. I’m having trouble finding definitive documentation of this design, however, most questions on the topic are answered by affirming the UI threadedness.

    • Here is a post from a member of the WCF RIA QA team indicating UI-thread-only processing.
    • Andy French describes the callbacks marshalling to the UI thread:

    The Domain Context Load and SubmitChanges execute asynchronously. They take a thread from the thread pool, make the necessary calls to the server, and when those calls complete the work is automatically marshalled back to the UI thread to modify the entity collections and subsequently update the UI (probably via INotificationChanged).

    If you use WCF to get your own data, you can do it on any thread you like. When the calls complete, you will have to write (or borrow) the code to update the UI on the UI thread to avoid cross thread exceptions.

    IMO, the main advantages of WCF RIA giving simple problems simple solutions:

    • Great tooling for re-using code between the server and client
    • Service and client code are always compatible
    • Transferring data to/from the client/server is relatively simple
    • WCF RIA is strongly opinionated resulting in easy-to-learn coding patterns

    The cons make hard problems hard or impossible:

    • WCF RIA is strongly opinionated and not following that opinion is painful or impossible
    • All operations return on the UI thread, often causing performance problems
    • There is some voodoo to achieve the highest amount of client+server code re-use
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying make one replace in string from a array but this dont work
I'm trying make some stuff in jQuery using ASP.NET. But the ID from runat=server
I am trying to communicate with RIA service from extjs using POST for getting
I am fairly new to iOS development and trying make a simple app which
Trying to make the infamous checkall checkbox for dynamically created rows from a MySQL
Trying to make a small countdown timer in my app but it's not working.
Trying to make a cross protocol, same domain request from https to http. I
I am trying to add a WCF RIA service to an existing website. When
I'm trying make one treeView with infinite subgroups. I can add my groups but
I'm trying to make a change to an old appengine application, but now after

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.