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

  • Home
  • SEARCH
  • 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 146101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:32:30+00:00 2026-05-11T08:32:30+00:00

I am creating a Silverlight 2 user interface to a remote instrument. There are

  • 0

I am creating a Silverlight 2 user interface to a remote instrument. There are two concurrent users at different sites interacting with the instrument (operator at the instrument and remote scientist) and any number of observer users not interacting with it, just watching. However, whenever one of the two active users changes something these changes must be immediately reflected in the UIs of all users, e.g. panning or zooming an image or annotating or selecting part of an image, adding items to a collection displayed in a listbox. Within the client I use observable collections which easily reflect changes made by that user, but it is harder seeing changes made by another user. I can poll for changes from each client but something like push notifications would be better. I have extensively Googled for examples but not found anything which is quite what I need. There are all sorts of security issues with Silverlight interacting with WCF services which mean many potential examples just don’t work. I have essentially run out of time on this project and need help fast. Does anyone have any suggestion of a suitable simple example which illustrates how to do this? I am an experienced developer but have had to teach myself Silverlight and WCF services and there is noone in my area who knows anything about these. Even tho’ I have done a fair amount of ASP.NET work I am not a web/Javascript guru. Thanks.

  • 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. 2026-05-11T08:32:31+00:00Added an answer on May 11, 2026 at 8:32 am

    Push notification is supported in Silverlight 2 using the new WCF PollingDuplexHttpBinding support. There are two assemblies installed with the Silverlight SDK (one for Silverlight app one for WCF server).

    I have a few blog posts and a full sample application that demonstrate how to ‘push’ Stock updates from a Console Application server that self-hosts a WCF service to connected clients. It also shows how each client can add notes against a Stock and have those notes synchronized (pushed from server) to all other connected clients.

    The latest version of the sample (Part 4) shows how to synchronize pushed updates between both Silverlight and WPF clients using two server endpoints as follows:

    using System; using System.ServiceModel; using System.ServiceModel.Description;  namespace StockServer {     public class StockServiceHost : ServiceHost     {         public StockServiceHost(object singletonInstance, params Uri[] baseAddresses)             : base(singletonInstance, baseAddresses)         {         }          public StockServiceHost(Type serviceType, params Uri[] baseAddresses)             : base(serviceType, baseAddresses)         {         }          protected override void InitializeRuntime()         {             this.AddServiceEndpoint(                 typeof(IPolicyProvider),                 new WebHttpBinding(),                 new Uri('http://localhost:10201/')).Behaviors.Add(new WebHttpBehavior());              this.AddServiceEndpoint(                 typeof(IStockService),                 new PollingDuplexHttpBinding(),                 new Uri('http://localhost:10201/SilverlightStockService'));              this.AddServiceEndpoint(                 typeof(IStockService),                 new WSDualHttpBinding(WSDualHttpSecurityMode.None),                 new Uri('http://localhost:10201/WpfStockService'));              base.InitializeRuntime();         }     } } 

    WPF clients connect to the WSDualHttpBinding endpoint and Silverlight clients connect to the PollingDuplexHttpBinding endpoint of the same WCF service. The app also shows how to handle the Silverlight client access policy requirements.

    Clients (Silverlight or WPF) can add notes against a Stock in their UI and these notes propagate back to the server to be pushed to all other clients. This demonstrates communication in either direction and hopefully performs all of the necessary communication required for your app.

    You can see a screenshot of the demo application running here.

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

Sidebar

Ask A Question

Stats

  • Questions 61k
  • Answers 61k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer So long as svn is in your path... Set objShell… May 11, 2026 at 9:39 am
  • added an answer The order is: Base constructor Derived constructor Derived destructor Base… May 11, 2026 at 9:39 am
  • added an answer You'll need some kind of synchronization. CyclicBarrier class has what… May 11, 2026 at 9:39 am

Related Questions

I am creating a basic image browsing application using Silverlight. Depending on the user's
I am creating a Control Template for the Button control in Silverlight 2. I
I am working on creating a tag cloud in Silverlight 2 and trying to
I am creating a small silverlight widget which pronounces a word and highlights each
I am creating an installer for a silverlight application and would like to be
I am creating a small modal form that is used in Winforms application. It
I am creating a program that will be installed using the .net installer project.
I am creating a GUI for a machine that runs remote (WinXP) or on
I am creating a Windows Service in C# that processes messages from a queue.
I am creating a windows service and want to know best practices for this.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.