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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:47:45+00:00 2026-06-09T23:47:45+00:00

The article C# Named Pipes with Async , which was written for Async CTP

  • 0

The article C# Named Pipes with Async, which was written for Async CTP library v3.0, uses code that does not compile with .NET 4.5. Specifically

await pipe.WaitForConnectionAsync();

var message = await streamReader.ReadToEndAsync();

fail because there is no such methods of NamedPipeClientStream.

Did something change in this regard between the CTP and the inclusion in .NET 4.5? Am I missing a step to make this work?

  • 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-09T23:47:47+00:00Added an answer on June 9, 2026 at 11:47 pm

    The *Async methods implemented in the Async CTP were temporary extension methods (i.e. they were extension methods that weren’t added to the actual classes involved). RTM “moved” those Async methods into the instance methods on the applicable classes. I assume that “move” wasn’t as easy as copying the extension methods and some work/testing/acceptance was involved. I’m gathering that some couldn’t get moved for various reasons. NamedPipeServerStream.WaitForConnectionAsync seems to be one of those methods. You’ll have to use the TaskFactory.FromAsync method to create a Task object from the BeginWaitForConnection/EndWaitForConnection pair to await on. something like:

        await Task.Factory.FromAsync(pipe.BeginWaitForConnection,
            pipe.EndWaitForConnection, null);
        StreamReader reader = new StreamReader(pipe);
        await reader.ReadToEndAsync();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This MSDN article states that: To guarantee optimal performance, aspnet_isapi uses asynchronous named pipes
according to this article , WCF with named pipes is the best choice for
I have a custom configuration file in my asp.net website, named urls.config , which
I have two entities named Category and Article which have a many to many
I've read an article about the Named Loop Idiom in C++ : http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Named_Loop This
About six years ago, a software engineer named Harri Porten wrote this article ,
I have a few classes: Article ------- Content ID Magazine -------- Name Code And
I have a large XML file which in the middle contains the following: <ArticleName>Article
This article on memory leaks emphasizes that having superfluous event listeners leads to memory
I have Drupal with CCK, I have a content type named Article. This Article

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.