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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:34:07+00:00 2026-06-09T16:34:07+00:00

Currently I have several endpoints within a single service which invoke the same action

  • 0

Currently I have several endpoints within a single service which invoke the same action but have different throttling configurations based on their priority.

  <serviceBehaviors>
    <behavior name="PriorityService1">
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
      <serviceDebug includeExceptionDetailInFaults="true" />
      <serviceThrottling maxConcurrentCalls="3" maxConcurrentSessions="3"
        maxConcurrentInstances="3" />
    </behavior>
    <behavior name="PriorityService2">
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
      <serviceDebug includeExceptionDetailInFaults="true" />
      <serviceThrottling maxConcurrentCalls="5" maxConcurrentSessions="5"
        maxConcurrentInstances="5" />
    </behavior>
    <behavior name="PriorityService3">
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
      <serviceDebug includeExceptionDetailInFaults="true" />
      <serviceThrottling maxConcurrentCalls="10" maxConcurrentSessions="10"
        maxConcurrentInstances="10" />
    </behavior>
  </serviceBehaviors>

Each of these deals with the incoming SOAP request in exactly the same way (it just throttles them based on priority). Each of the priorities just inherits from a BaseService class like so.

public class Priority1Service : BaseService { }

public class Priority2Service : BaseService  { }

public class Priority3Service : BaseService  { }

As you can see, there is no implementation in the Priority classes because I just use the inherited behavior. Is there a better way to do this? Is there a way I can pass the prioritization in the soap message and have the service deal with it based off that? I’d ideally like to be able to get rid of these classes which only inherit behaviour.

  • 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-09T16:34:08+00:00Added an answer on June 9, 2026 at 4:34 pm

    Try defining different service configurations at the web.config file;

    <services>
          <service behaviorConfiguration="PriorityService1" name="Sample.Sample">
            ...
          </service>
          <service behaviorConfiguration="PriorityService2" name="Sample.Sample">
            ...
          </service>
          <service behaviorConfiguration="PriorityService3" name="Sample.Sample">
            ...
          </service>
    </services>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have several action buttons in different pages, and each button performs some
Currently I have several classes, each of which deals with different sites. They act
In my app, I have deal with several different parameters, which derive from IParameter
Currently we have several defect and bug tracking systems, which include Quality Centre and
I currently have a list view which has several rows of data and I
We currently have several Amazon EC2 instances running and we were using the same
I am writing a small module which will have several different aspects to it,
I currently have several websites which live on separate domains: www.app1.com www.app2.com www.app3.com Each
I currently have a GUI built in wxPython with several sections, one of which
I have tried several different solutions but no luck so far. - (CGPoint)contractLineTemp:(CGPoint)point :(CGPoint)circle

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.