473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

best collection for collection of users

Hi, im creating an application that will keep track of what users are logged
into a network at a given time. all users must sign ingo this network first,
so whenever a user is logged on, i will be notified. I am wondering on what
the best collection will be. the number of users will vary (this is an AIM
like network) so it needs to be accessed quickly and efficiently. what is the
best collection for this?
--
-iwdu15
Jan 2 '07 #1
3 1036
iwdu15,
Without more details, such as average & maximum # users, I would say a
Dictionary(Of User) would be a good start. Where User is your type that
maintains information about a specific user that is logged in.

However! you will want to consider using a thread safe wrapper around the
Dictionary(Of User)...

Note Dictionary(Of T) is a .NET 2.0 type, if you are using a previous
version of .NET I would suggest a HashTable.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"iwdu15" <jmmgoalsteratyahoodotcomwrote in message
news:51**********************************@microsof t.com...
Hi, im creating an application that will keep track of what users are
logged
into a network at a given time. all users must sign ingo this network
first,
so whenever a user is logged on, i will be notified. I am wondering on
what
the best collection will be. the number of users will vary (this is an AIM
like network) so it needs to be accessed quickly and efficiently. what is
the
best collection for this?
--
-iwdu15
Jan 2 '07 #2
hi, thanks for the quick reply. Sorry for the lack of info, however, i dont
have anymore info. i am in the development stage and building this from the
ground yp. I am just looking ahead for if i had a large network (which is
very unlikely will happen, this is just a project to learn about servers and
clients, multi-user interaction, etc) or a small network. I was just looking
for a quick yet efficient storage mean and maybe thread-safe.
--
-iwdu15
Jan 2 '07 #3
LDAP (assuming it is Microsoft) is in my idea related to your reply what you
have to investigate.

http://msdn.microsoft.com/library/de...sualStudio.asp

AFAIK will this not fulfil your need, therefore you need an extra table as
addition which you hold somewhere to fulfil the needs you have described.

I would make from that table a simple database file which keeps track of the
logged on time on users based on the information in the AD.

Cor
"iwdu15" <jmmgoalsteratyahoodotcomschreef in bericht
news:CB**********************************@microsof t.com...
hi, thanks for the quick reply. Sorry for the lack of info, however, i
dont
have anymore info. i am in the development stage and building this from
the
ground yp. I am just looking ahead for if i had a large network (which is
very unlikely will happen, this is just a project to learn about servers
and
clients, multi-user interaction, etc) or a small network. I was just
looking
for a quick yet efficient storage mean and maybe thread-safe.
--
-iwdu15

Jan 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3365
by: Kakaiya | last post by:
Error message: An unhandled exception of type 'System.InvalidCastException' occurred in test.dll Additional information: Specified cast is not valid. Public Class Form1 Inherits...
136
9201
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
1
2010
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for...
9
3486
by: Anders Borum | last post by:
Hello! I have a class that needs to validate the input value, when a programmer changes a specific property on a class. The input should only accept the following pattern {1,n} (alpha-numeric...
9
5470
by: Alfred Taylor | last post by:
I'm testing the waters of n-tier development and I ran into a scenario that I'm not sure what the best solution would be. I have a Company object which contains a collection of contacts retrieved...
3
4576
by: jason | last post by:
Hello. I've got this simple collection populate code I downloaded from the net (sorry can't find source now) I'm trying to test, but I can't seem to get it to work. Any help would be greatly...
2
1467
by: Sjaakie Helderhorst | last post by:
Hi, What's the best way of storing a dataset (+/-1000 rows, 9 columns)? I'm using a session-variable but this seems to have serious impact on performance. It's a shop and I'm using the same...
0
4197
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
2
1658
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi, I have been developing using C# in ASP.Net for about a year now. And have been a programmer for about 10 years. I have learned many different things in .NET, but still when I look at sample...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.