I have a basic application like buddylist, which is a pub / sub deal in WCF. My problem is that one or two calls are long, and this blocks the whole server application (gui updates, etc.).
Here is my code:
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IBuddyListContract))] public interface IBuddyListPubSubContract { [OperationContract] string GetABunchOfDataZipped(String sessionId);
So far I have an idea on how to do this, but is there an easier way?
Idea 1 . GetABunchOfDataZipped (String sessionId) will have a void when it has another endpoint that is on my duplex contract that I hit. I don't like this, as if this is a fundamental change in my architecture, and if the line is a large block of text over a slow Internet connection, will it still suffer from the same problem?
source share