Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 805331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:03:58+00:00 2026-05-15T00:03:58+00:00

I am programming an instant messaging library for MSN Messenger, and I have a

  • 0

I am programming an instant messaging library for MSN Messenger, and I have a simple question about raising events.

When logging in, should I be raising UserAdded for each user that is synchronized (already on the contact list), or should the UserAdded event be reserved for when a new user has been added to the contact list via the AddUser method? Should I perhaps use another event, UserDownloaded for when a user is downloaded?

Similarly, when I call logout, should I call UserRemoved?

I hope this makes sense.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:03:59+00:00Added an answer on May 15, 2026 at 12:03 am

    This is a more general design question and it may depend on your specific case – e.g. what do you plan to use the events? What information does the user of the library need?

    I think that triggering the event when a user is added from any source (both locally and when a new user is downloaded) is more useful, because you could use the event as a notification of when you need to update the list of users (for example). The event could also carry some YourEventArgs information which would contain information about the source (local vs. downloaded).

    Triggering the event when some method is called may not be as useful (if the method is called by the user of the library), because the user of the library will probably know that he’s calling the method (so he doesn’t need to be notified about that).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Programming Pearls (second edition) Column 5, problem 5 the question is about implementing
different programming languages have different features or lack certain features. Design patterns are a
I have been programming 10 years, mostly in vba and vb.net but I know
I'm fairly new to database programming in WinForms, and have been using BindingSource, DataSet,
While programming I have come to an unusual error. When I initialize an integer
When programming my app, I get to the point where I have to update
When programming for Android sometimes you have to use static methods. But when you
I am learning on my own about writing an interpreter for a programming language,
programming in C with the X11 library, is there a way to get notified
Programming Student here...trying to work on a project but I'm stuck. The project is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.