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 7570119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:20:26+00:00 2026-05-30T15:20:26+00:00

I am trying to download some data from WCF using RX. However Observable.FromAsyncPattern() doesn’t

  • 0

I am trying to download some data from WCF using RX. However Observable.FromAsyncPattern() doesn’t return any response when combind using SelecMany

I have tried to highlight this problem in the snippet below:

var timer = Observable.Timer(TimeSpan.FromSeconds(1));
var obs = Observable.FromAsyncPattern<PictureFile>(ServiceClient.BeginDownloadFilePreview, ServiceClient.EndDownloadFilePreview);

obs().Subscribe(x => Debug.WriteLine("I am here"));

var result = from _ in timer
             from data in obs()
             select data;

result.Subscribe(x => Debug.WriteLine("Can't get here :( "));

So if understand RX and SelecMany correctly, code above should print:

“I am here”

“Can’t get here 🙁 “

However it only prints the first line and not the second one

Edit: Forgot to mention that this code runs fine without a debugger attached, but fails if I run it without debugger

  • 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-05-30T15:20:28+00:00Added an answer on May 30, 2026 at 3:20 pm

    Just found it!

    Firstly I shouldn’t have swallowed exceptions, even though it was a testing code and should have logged all exceptions reported by IObservable.

    Secondly I was running my project from MSUnit tests and when running it with an attached dubugger it affected the maxReceivedMessageSize of WCF binding (at least it looks like it), so when I was running in Debug mode it all worked, but when running without it one request failed, but I haven’t seen it as I wasn’t checkin OnError messages.

    Lesson learnt: Always Log OnError messages

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to download some data using pure javascript/html from cross-domain, dropbox to be
I'm trying to automate the download of some data from a webform. I'm using
Im trying to download share data from a stock exchange using python. The problem
I am trying to download some data from the reporting services instance on our
I am trying to automate a download of some data from a web application
I'm, trying to download some Google Analytics data from their API. I can download
I'm trying to download images (.jpg) from web folder using wget. I want to
I am trying to download the image from the url http://a3.twimg.com/profile_images/414797877/05052008321_bigger.jpg I am using
I`am trying to download and install an apk from some link, but for some
I am trying to download some JSON from the google book API. The URL

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.