Multiple Client Simulation

  • Thread starter Thread starter Chacko
  • Start date Start date
C

Chacko

Hi could anyone tell me how to simulate multiple clients for a windows
form without actually me having to copy paste the code. Cause its a
real pain....
The thing is i am working on remoting which u guys must have guessed by
now...
And then this is i have a windows form is which is the client and i
have a listener... Now when i need to have multiple clients basically i
got to copy paste the codes and its actually a pain...
Need Urgent Help!!!1

Thank you
 
If the winform is the client, then can you just not start multiple
copies of the form, perhaps on different threads? and failing that,
just create a pile of processes? Of course, if you are trying to
stress-test it, you may be better off stressing the objects directly,
otherwise you will have to attempt to automate the form to simulate
user actions...

Or did I miss the question?

Marc
 
Thanx man...
I guess i forgot to state this...Is it possible through Reflection?
 
Hey Marc thanks for the help man.. I am sorry guess i forgot to state
the fact that is there any way to simulate this through Reflections??
 
Essentially you can write an entire C# app making every call (including
constuctor) via reflection... well, OK, you might need to call the
reflection methods directly...

But the answer is yes, but I'm not going to attempt to illustrate
without a more defined scenario. Reflection is a big area.

Marc
 
Guys i finally did the multiple client simulation using Reflections
itself...First what you do is make an assembly of the code u want to
run and then add that as a reference to the program which does this
multiple simulation...
Say U have program A which u want to simulate and then u have program B
which is sort of like Main Program which holds various data and
parameters for ur various instance of Program A.

Compile Program A..
Use the exe as a reference for Program B.
Then using Reflections pass parameters and call Program A....
Its easy and believe me it saves lot of time also...
Will write the code later...

A Little busy now...

Thank you anyways for all your help...

Jacob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top