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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:44:39+00:00 2026-05-27T23:44:39+00:00

My windows service is hosting WCF services. From what I understand my wcf services

  • 0

My windows service is hosting WCF services.

From what I understand my wcf services can be a singleton or have it create new endpoints per client request.

And I understand from this, if it is singleton, any caching done inside a endpoint will behave different when compared to if the endpoints are generated per client request.

If I am wrong in the above setup, please correct me.

What caching options do I have?

Is it similar to the web where multiple requests which are new instances of web pages have a cache store that can be used application wide?

  • 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-27T23:44:40+00:00Added an answer on May 27, 2026 at 11:44 pm

    Take a look at

    This Link

    for your endpoint management.

    It sums to:

    Instance Management is a set of techniques helping us to bind all client requests to service instances governing which instance handles which request. In order to get familiar with all instance management modes we should take a brief overview on all of them. Basically there are three instance modes in WCF:

    Per-Session instance mode

    Per-Call instance mode

    Singleton Instance Mode

    What I’ve usually done in situations like this is an per-session instance-cache. (Of course it depends on what I’m trying to do).

    I use a cache object as in the following:

    Configuration GetCachedConfiguration()
        {
    
            // If there is no cached item, get it from the database first.
    
            if (cachedConfiguration == null)
            {
                cachedConfiguration = ConfigurationData.GetConfigurationData();
            }
    
            return cachedConfiguration;
        }
    

    Where cachedConfiguration is my static cached object. This function acts as my accessor to configuration data (in this case).

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

Sidebar

Related Questions

I have six wcf services that I'm hosting in a windows service. Everything works
I have a windows service hosting several WCF services. In my windows service I
I have a WCF service and am hosting it in a Windows Service. I
WCF Service WCF service hosting in Windows Services WinService log on as Network Service
We had a Windows Service Project hosting two of our WCF services and we
I have created a windows service for the sole purpose of hosting a WCF
i have some WCF services either hosted in IIS or self-hosted in windows service.
I host my WCF Service with windows service hosting... now when I call my
I have a custom windows service with my own register handler, how can I
I'm hosting a WCF service in IIS7 on Windows Server 08, sp2. The service

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.