duplex

WCF push to client through firewall?

See also How does a WCF server inform a WCF client about changes? (Better solution then simple polling, e.g. Coment or long polling) I need to use push-technology with WCF through client firewalls. This must be a common problem, and I know for a fact it works in theory (see links below), but I have failed to get it working, an...

WSDualHttpBinding for duplex callbacks

Would using WSDualHttpBinding for duplex callbacks work in real-world scenarios? Say, I have a .NET application that uses a random port, would the service be able to resolve the client's base addresses and port for callbacks? ...

How do I automatically re-establish a duplex channel if it gets faulted?

Hi, I'm developing a client/server application in .Net 3.5 using WCF. Basically, a long running client service (on several machines) establish a duplex connection to the server over a netTcpBinding. The server then uses the callback contract of the client to perform certain on-demand oparations, to which the client responds in an asynch...

Does the concept of shared sessions exist in ASP.NET?

I am working on a web application (ASP.NET) game that would consist of a single page, and on that page, there would be a game board akin to Monopoly. I am trying to determine what the best architectural approach would be. The main requirements I have identified thus far are: Up to six users share a single game state object. The users...

WCF Duplex Service and TCP Port Exhaustion

I am trying to wrap my head around this. I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for alerts and I need to be able to send message direclty to specific clients, and WCF allows me to do all of thi...

Can I programatically control the 'Rotate 180 Degree checkbox' option in HP Printer Driver settings with VBA ?

I'm trying to switch on and off the Rotate 180 degree setting for a HP Laser jet printer (4200/ 4350) using a duplexer unit. The Business has a requirement to "print on both sides", for maximum control I'd like to be able to manipulate at print time (through print macros) whether or not duplex printing is enabled for each of the differe...

How to: Responsive available Wcf duplex communication

I'm working on an application that uses WCF to communicate between server and clients Server has changing number of services, along with one master service that clients can query for information about other services, and then subscribe to those they want using information from master service. Master service sends notifications to subscr...

Is an Open Channel Needed for Duplex Communication?

Hi, Short Version: When I've created a Channel using ChannelFactory on a client which uses duplex communication, do I need to keep the channel open in order to receive the callback or can I call ChannelFactory.Close()? Long Version: I'm developing my first WCF service and I've created my own ClientProxy Class, which implements and amal...

WCF: is it possible to use streaming mode in a duplex channel?

In WCF, contracts can be switched to streaming mode, to transfer large messages. After reading and testing it seems to me, that streaming mode can not be used with duplex channels (channels with OneWay-calls and a callback interface). Is this so? Do duplex and streaming can not be used with each other? Or is there a way? (I'm trying t...

Duplex Callbacks or Client-Side Threading for Responsive WCF Clients

I have a certain service where specific functions will take longer to call than others, sometimes they might take seconds to return. In order to prevent the client's UI being blocked when this happens what is the preferred solution: Use a Duplex channel and simply use the callbacks to update the UI when data is received. Use a separate...

WCF: Duplex Callback always Anonymous

I've written a WCF duplex service and client. Everything works well until I try to call .Demand() in the client implementation. It appears that the the service invokes the callback method Anonymously. I think I am missing how to correctly configure the service. Code used to create ServiceHost; ServiceHost duplex = new ServiceHost(ne...

Long-running callback contract via WCF duplex channel - alternative design patterns?

I have a Windows service that logs speed readings from a radar gun to a database. In addition, I made the service a WCF server. I have a Forms and a CF client that subscribe to the service and get called back whenever there is a reading that satisfies certain criteria. This works in principle, but after some time the channel times out. ...

What are the implications of half-duplex serial connections?

What are the implications of using a half-duplex serial connection versus a full-duplex one? What happens if both sides try sending data at the same time? Do you end up with corrupt data arriving on both ends? Does flow-control help you with this? ...

WCF: Using Duplex for notifications across multiple instances of the same WCF service

What is the best possible way to share a single instance of a WCF Service (the SoapClient class) across multiple instances of an application (WPF)? I need to do this because I need to enable duplex communications with callbacks, so i need to "register the application" to the the service so that other users using the application will ge...

Setting WSDualHttpBinding ClientBaseAddress throws CommunicationObjectFaultedException

I have created a duplex service using the WSDualHttpBinding and am trying to set to set the clientBaseAddress so that I can avoid using port 80 which is blocked by IIS. The service works fine when I have IIS stopped and no clientBaseAddress set but as soon as I set it after some time (Seems to be timing out) I get the following exception...

WCF duplex service using net tcp: "Stream Security is required..."

I'm writing a service that allows users to register with it and receive notifications when an event happens. I'm trying to do this with netTcpBinding, but keep coming up with errors, even when running on my local machine. When I try to send a notification, I am timing out, getting this error: Stream Security is required at http://w...

Re: Shared Memory and Semaphores

Is an IPC mechanism using shared memory and semaphores for synchronization simplex like pipes or duplex like message queues? ...

Silverlight PollingDuplexHttpBinding and cross domain issues

I created a silverlight component and a WCF service, both are communicating using a PollingDuplexHttpBinding to enable push and pull functionality. Works perfectly in our domain, however, a host outside our domain makes completly no calls to the webservice which is publicly exposed. clientaccesspolicy file is available and downloadabl...

WCF Nested Call-back

The backgound: I am trying to forward the server-side ApplyChangeFailed event that is fired by a Sync Services for ADO 1.0 DBServerSyncProvider to the client. All the code examples for Sync Services conflict resolution do not use WCF, and when the client connects to the server database directly, this problem does not exist. My DBServerSy...

WCF ServiceHost.Close() Delay

I have a simple WCF duplex TCP service that I am trying to stop programmatically. If I don't have any connected users, ServiceHost.Close() is very quick but if I even have one connected user, I find the Close() function to take quite a bit of time, sometimes >30seconds. Is this usual behavior? On the other hand, Abort() is almost insta...