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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:12:51+00:00 2026-05-27T17:12:51+00:00

I’m following this tutorial on WCF and everything works fine. Seems like with that

  • 0

I’m following this tutorial on WCF and everything works fine. Seems like with that simple code I should be able to call any kind of methods from my clients to a server. I’m only interested on pipes, no networking at all.

I remember reading somewhere that these objects returned from the server, such as pipeProxy in this code:

IStringReverser pipeProxy = pipeFactory.CreateChannel();

will last only 5 minutes and then be disposed or finalized or something like that. Is this true? Will I have to call my ChannelFactory‘s CreateChannel every time I want to call one of my server’s methods? Also, can I keep my ChannelFactory instance or will it also commit suicide after a while?

I can’t find much information on these details and what I do find are huge advanced tutorials that talk mostly about stuff I don’t care about like http and networking. All I want is to have a basic communication between two applications in the same machine. Being able to call a method from application A to application B is all I need.

So is there any gotchas I should be afraid of or is the code posted in the linked tutorial enough? Can I just take the code in the tutorial and simply keep adding methods to the sample class and everything will work out just fine? Or is there anything else I need to know?

  • 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-27T17:12:51+00:00Added an answer on May 27, 2026 at 5:12 pm

    You can keep your ChannelFactory, in fact you should as it is expensive to create one.

    On the other hand creating new channels is not an expensive operation and you can just create new ones each time you need to make (or retry) a call.

    I didn’t find the reference to the 5 minutes, so I guess that what the tutorial meant is that if you keep a connection open for more than 5 minutes then it will timeout. If you want to keep a connection open all times between the two applications I’ll suggest looking into DuplexChannels instead

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am doing a simple coin flipping experiment for class that involves flipping a
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have some data like this: 1 2 3 4 5 9 2 6
I have just tried to save a simple *.rtf file with some websites and

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.