Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Mutex class
Message
De
19/06/2007 11:35:04
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01234134
Message ID:
01234289
Vues:
8
Hi Christof,

>> Essentially, I need to queue the commands up in the command processor itself so it receives the responses in the same order.
>
>Can't you create a command collection that is processed instead of separate commands? Then the event could initiate the next command when the first one has completed until the entire collection has been processed.

Hmmm. Since I would want to support commands from different threads coming in, I would need to keep this in the commandProcessor itself. Then essentially this collection just becomes an incoming Queue in that object. Maybe like this:

rfid.CommandProcessor.Command.Add("ATTRIBUTE", "ANTS", "2");

The Add method would keep dishing out the commands/ waiting for responses until the collection was empty. If another is added, later it has to start up again. hmmm. Starting to sound like rolling my own queue is what I need to do.

Thanks for your input and help.
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform