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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:35:42+00:00 2026-06-02T21:35:42+00:00

Possible Duplicate: WCF Duplex – Push different notifications to each client? I am designing

  • 0

Possible Duplicate:
WCF Duplex – Push different notifications to each client?

I am designing a 2 WCF services that all my clients will connect to.
One of these services will be a notifications service.

I would like each client to connect to the service, subscribe to it and then receive notifications, using a duplex Callback interface (the service will fire the ‘Notify’ operation in the clients).

This is my Design Idea:

enter image description here

My question is:
When each client connects to my service, I will validate it against the ‘Users’ table in my database (I will be using a UserNamePasswordValidator and implement the ‘Validate’
function).

Requirement:
Each user needs to receive different notifications, based on rules defined in the database.

Say my service detects a change in the database (a new product of type ‘wine’ was inserted to the database) – it now needs to notify the clients. But not all clients need to be notified about this. Only clients that have requested to be updated about wine should be notified.

How do I do this ?

Once the client connects and is validated using the UserNamePasswordValidator – do I have some sort of ‘ClientID’ attached to that client ?

I know that I should not store a local list of ‘client endpoint+client ID’ in my service, because that means I have to use a Singleton service, right ?

So how can I store for each client that connects to the service – the ID of that client ?

I need to know the ID of each client, so that when an event in the database occurs – I can loop over every connected client – check for each one if he requested to be informed about that event – and if so – notify him about that event.

Hope my question is understood …

  • 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-02T21:35:44+00:00Added an answer on June 2, 2026 at 9:35 pm

    I think it would be difficult to achieve this in practise.

    A possible solution would involve maintaining many different lists of your service callback contract and expose the same number of subscribe operations. So your clients would call a subscribe operation for each of the events they are interested in and your service would then be able to call the clients callback contract once for each of the subscribed events.

    However you would have to know exactly what your clients want to subscribe to in advance because this information would be codified on the exposed service contract and would therefore be costly to change.

    How you would link this to rules defined in your database I don’t know.

    The other way of handling this is to move to a pubsub messaging platform like NServiceBus, but this means moving away from using WCF.

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

Sidebar

Related Questions

Possible Duplicates: What is REST?[closed] Does the WCF REST WebChannelFactory client support REST services
Possible Duplicate: Calling a webservice that uses ISO-8859-1 encoding from WCF I am trying
Possible Duplicate: Injecting data to a WCF service I have a WCF service that
Possible Duplicate: WCF Encryption solution for App.config viewable to a client? In my application,
Possible Duplicate: Web Services — WCF vs. Standard I'm thinking about to know if
Possible Duplicate: Web Service vs WCF Service Duplicate: Web Service vs WCF Service What
Possible Duplicate: Yield In VB.NET In C#, when writing a function that returns an
Possible Duplicate: WCF Service Deployment in IIS Page cannot be displayed and how does
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always
Possible Duplicate: Static Variables in WCF So I am fairly new to using WCF

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.