Design pattern for web chat client -


I am developing desktop client app for web chats

Post and GET in client app Communicates with the server through.

The client app contains these methods:

  • Logout
  • loadFriendList
  • Search Users
  • AddFriend
  • Send Message
  • Load Messages
  • I would like to use a design pattern for this winforms app. I am a newbie and I need advice that what design patterns are appropriate for this app.

    Sorry for my English

    This question is more than a bit widespread, so I will reply based on the answer to the messages.

    You can go with a message pump-type pattern, as Win32 is operating, where you usually have a single method, where you handle messages via a switch statement. However, if it gets too big, then I will keep the actual logic in different ways, and it is appropriate to call that method a single method.

    Another pattern that will be used to use "C # -Suk", for each message type,

    you get a normal message You can also add received events that will be removed for any message.


    Comments