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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:15:01+00:00 2026-05-27T12:15:01+00:00

What is the best technology or technique to create server-side code in .NET that

  • 0

What is the best technology or technique to create server-side code in .NET that that can be changed while it is running?

You get this functionality for free when you use web services because of the stateless model, but I am building a client/server architecture where the clients are connected for the lifetime of their sessions over TCP.

How can I implement changes without disconnecting users and restarting my server? Obviously the connection management code and the API will not change otherwise that would break things very quickly.

Is it using MEF? Some kind of shadow-copy? I would prefer to NOT use message queuing and multiple processes.

  • 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-27T12:15:02+00:00Added an answer on May 27, 2026 at 12:15 pm
    • You can use MEF’s Recomposition
    • Abstract your server’s way of getting the data to another object
    • Inside this object, spin off a background thread to check for updates
    • When an update becomes available, lock an object, so the client cannot get data while you’re updating

    Server-side public API

    public SomeDataModel SomeGetDataMethod(...)
    {
       // auth
       return someObject.GetData(); // GetData() methods abstracted
    }
    

    Server-side internal

    public SomeObject
    {
        public SomeObject()
        {
            // spin off a background thread to check for updates
        }
    
        private void OnUpdateAvail() 
        {
           lock(recomposeLock)
           {
                // recompose
           }
        }
    
        public SomeDataModel GetData()
        {
           lock(recomposeLock)
           {
                // get your data
                return someDataModel;
           }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am New for the technology. I want to know that Can we create
In mobile development world, which is the best programming language/technology that we can use
Over the next few months, we need to consider the best technology/technique for periodically
Best to describe this in code... I have this public class A<T> { public
Which .Net technology is best suitable for which kind of game? What the criteria
I'm going to try this new cloud technology. So I think the best place
I want to know that which technology is best use in web application desktop,
Just wondering the best way to go about this, I am building a VB.NET
I am wondering what is the best approach/methods/technology to implement a C# desktop application
Which technology stack is best for the creation of a two dimensional MMORPG 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.