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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:54:16+00:00 2026-05-12T11:54:16+00:00

Hi I have an application that operations like this.. Client <—-> Server <—-> Monitor

  • 0

Hi I have an application that operations like this..

Client <----> Server <----> Monitor Web Site

WCF is used for the communication and each client has its own session on the server. This is so callbacks can be used from the server to callback to the client.

The objective is that a user on the “Monitor Website” can do the following:

a) Look at all of the users currently online – that is using the client application.

b) Select a client and then perform an action on the client.

This is a training system so the idea being the instructor using a web terminal can select his or her target client and then make the client application do something. Or maybe they want to send a message to the client that will be displayed on the clients screen.

What I cant seem to do is to store a list of all the clients in the server application, that can then be retrieved by the server. If I could do this I could then access the callback object for the client and call the appropriate method.

A method on the monitoring website would look something like this…

Service.SendMessage(userhashcode, message)

The service would then somehow look up the callback that matches the hashcode and then do something like this

callback.SendMessage(message)

So far I have tried without look to serialise the callbacks into a centralised DB. However, it doesnt seem possible on the service to serialise a remote object as the callback exists from the client.

Additionally I thought I could create a global hash table in my service but im not sure on how to do this and to make it accesible application wide.

Any help would be appreciated.

  • 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-12T11:54:16+00:00Added an answer on May 12, 2026 at 11:54 am

    What I have done is as follows…

    1. Created a static instance in my service that keeps a dictionary of callbacks keyed by the hashcode of each WCF connection.

    2. When a session is created it publishes itself to a DB table which contains the hash code and additional connection information.

    3. When a user is using the monitor web application, it can get a list of connected clients from the DB and get the hashcode for that client.

    4. If the monitor application user wants to send a command to the client the following happens..

      • The hashcode for the sessionn is obtained from the db.
      • A method is called on the service e.g. SendTextMessage(int hashcode, string message).
      • This method now looks up the callback to the client from the dictionary of callbacks and obtains a reference to it.
      • The appropriate method in this case SendTextMessage(message) is called on the callback.

    Ive tested this and it works ok, Ive also added a functionality to keep the DB table synchronised to the actual WCF sessions and to clean up as required.

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

Sidebar

Related Questions

I have an application that goes like this F5 load balancer - IHS(a&b) -
I have a multithreaded application that has many concurrent operations going on at once.
I have a Silverlight application that implements some basic CRUD operations on a fairly
I have a simple web service operation like this one: [WebMethod] public string HelloWorld()
I have a server application that uses boost::asio's asynchronous read/write functions to communicate with
I have an application that uses WCF for all DataAccess. It returns some business
I have an application that consists of two processes, one client process with a
I have a BIG client-serve application that uses Enterprise Library v4.0 It uses the
We have an windows Azure web role (typically ASP.NET application) with client side J-queries
I have an application winform client written in C# and a Server application written

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.