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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:18:47+00:00 2026-05-16T03:18:47+00:00

Scenario So I’ve taken an example of a distributed application in WCF that implements

  • 0

Scenario

  • So I’ve taken an example of a
    distributed application in WCF that
    implements the Observer pattern.
  • Ihave put the server-side into a
    windows service and added some
    classes to do some calculations,
    which I intend to pass the results
    back to the client.

The solution is made up of 3 projects.

  • Server-Side Windows Service – Processes all the data/Performs calculations.
  • Common Objects Class Library.
  • Client-Side Windows Forms Application.

They connect and exchange data using a WCF Service that implements the Observer pattern to allow for two-way data exchange.

On The Server-Side:

I’ve got 3 classes:

  1. Class one calculates X.
  2. Class two calculates Y.
  3. Class three calculates Z.

The data from these 3 calculations is then published via the WCF Service to the Client-Side.

On The Client-Side:

Here’s the TRICKY part………..

I want each set of data from each of these 3 classes to be displayed on a GridControl on a DIFFERENT Form.

So it will be as follows:

  1. Class X data will be published to
    the MainForm.
  2. Class Y data will be
    published to the YForm.
  3. Class Z data
    will be published to the Zform.

The Client application, when first run, will show only the MainForm, but it will contain a menu bar to open the Yform and Zform.

Thoughts:

  • What do you think the best way to do this is?
  • Do I publish all the data to one central class and then invoke the dictionaries bound to the grid controls on each different form to update the data?
  • Or is there another way?

Appreciate the help.

  • 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-16T03:18:48+00:00Added an answer on May 16, 2026 at 3:18 am

    Option 2 in your list would work, publish to a central class on the client and have the other forms query this class for the info. I would suggest a Publish/Subscribe pattern rather than the observer (I presume you will implement this with Duplex bindings), as it is a less coupled implementation which scales better.

    This way the service will just publish info to subscribing clients.

    You can implement this by hosting WCF response services on the client form, this way when one of your calculation services publishes a result, the service hosted on the WinForm can subscribe and receive this event.

    If you have a requirement to keep the forms open and update them in real time you can have each form that needs data to host a service on the form, and just subscribe to different events.
    You can then synchronize (synchronization context) onto the UI thread and update the grid in real time i.e stock price updates.

    I recommend Juval Lowy’s book Programming WCF Services to help explain the concepts and provide a reference implementation of Publish/Subscribe, hosting services on forms and synchronization context.

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

Sidebar

Related Questions

Scenario : I'll try to put an analogy with the loan broker example from
Scenario is that we send out thousands of emails through SMTP server. Content is
Scenario: WAMP server, InnoDB Table, auto-increment Unique ID field [ INT(10) ], 100+ concurrent
Scenario: Most smartphones have a high resolution camera that generates photos that may range
Scenario: I am calling a function that returns a field that the user enters
Scenario: An MVC3 app that uses constructor injection to provide services for a given
Scenario: I have imported the data from SQl Server to HDFS. The data stored
Scenario: I want to develop an application.The application should be able to connect to
Scenario: Windows server in a AD domain hosting a Subversion repository using SVNSERVE only
Scenario : I have an ASP.NET MVC application developed in Visual Studio 2008. There

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.