public IAsyncResult BeginOpenChat(string room, AsyncCallback callback, object @object) { if (openChatDel != null) { throw new InvalidOperationException("Can't open multiple Chats at a time"); } openChatDel = new OpenChatDel(OpenChat); return(openChatDel.BeginInvoke(room, callback, @object)); }
public IAsyncResult BeginOpenChat(string room,AsyncCallback callback,object @object) { if (openChatDel != null) throw new InvalidOperationException ("Can't open multiple Chats at a time"); openChatDel = new OpenChatDel (OpenChat); return openChatDel.BeginInvoke (room, callback,@object); }