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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:46:07+00:00 2026-05-26T11:46:07+00:00

Is that possible (using behavior and IClientMessageInspector.BeforeSendRequest) to change the comunication channel before send

  • 0

Is that possible (using behavior and IClientMessageInspector.BeforeSendRequest) to change the comunication channel before send a message ?

I need to change this, because i have a backup/primary strategy for my proxy.

  • 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-26T11:46:08+00:00Added an answer on May 26, 2026 at 11:46 am

    Based on your comment, it sounds like you want to be able to switch service endpoints in mid-call if the primary service is offline. I don’t think there’s any way to do that – at least not elegantly.

    Once a communication channel is established, it’s pretty much set until it is closed (or aborted). There’s no way to switch it from one endpoint to a different (backup) endpoint – you couldn’t even do it by creating a new channel because the proxy would still be using the primary endpoint.

    Based on my understanding of WCF, about the closest you could come would be for the client to detect that the primary service was not responding (most likely through a timeout), and then it could switch to a proxy configured for the secondary/backup service.

    Now, you might be able to, within IClientMessageInspector.BeforeSendRequest do some checking to see if the service is responsive, and if it does not response try to generate a new proxy with the backup service endpoint and send the message there…BUT I don’t know if that would work, and even if it did it strikes me as a bit of a kludge.

    Simplest solution is that the client simply switches to the alternate service endpoint if the primary endpoint is down, IMO.

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

Sidebar

Related Questions

Hoping that using something like this demo it is possible to drag items within
Possible Duplicate: Tab behavior using jQuery Imagine that there are many text boxes in
Is it possible that using jQuery, I cancel/abort an Ajax request that I have
Is it possible that even if I'm using a class from a swc it
Is it possible without using exponentiation to have a set of numbers that when
Mathematically I suppose it's possible that even two random GUIDs generated using the built
I'm using Visual Studio 2010 RC. Would it be possible that after doing my
Is it possible in CSS using a property inside an @page to say that
I know that it's possible to implicitly provide asynchronous interaction using: Asynchronous Delegates Asynchronous
I know that it is possible to create .xls files from Delphi using ADO,

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.