Author: pwned | Posted on: 2/11/2009 10:48:04 PM | Views : 305

Hi
I'm trying to create a chat application without a timer. When one user
sends a message to the server, the server is supposed to update the
chat controls of every other user. It is sort of working. I created a
server side object in Application and it has a delegate. When a user
opens the page, page control registers its callback to Application
object's delegate. 



Here's the Application object's class: 


--------------------- 


public class ChatDispatcher

{
public ChatDispatcher()
{
dispatchMessage += DispatchHelper;
messageList = new List();
}

public delegate void DispatchMessage(string message);
public DispatchMessage dispatchMessage;

...

Go to the complete details ...