Dynamic WebProxy (Object) Creation Within C#

J

Jim Douglas

I have a requirement to dynamically create a webProxy object in C#. I have
created an instance of the webProxy and stored it within a hashtable then
placing the hashtable in cache. When required I can read the application
cache and extract the hashtable but I can't figure out how to "create" the
object now? Someone at the office told me this would work and I'm thinking
we are missing something, maybe I should serialize it?

I am trying to create cacheManager object that would be used across numerous
different .NET applications. I want it to be generic enough so that each
application stores the relevant webProxies, with the corresponding method
name in cache, my cacheManager would read them, create the object, and
execute the method to gather the data, finally placing the data in cache for
everyone to utilize.

Any link, comments, suggestions would be appreciated, also if anyone has a
better idea? It's sucks not having access to newsgroups at the office!


Thanks!
 
M

Mona

Hi Jim,

Regarding this issue of creating the cache manager object, I would like to
tell you that Cache Manager object is normally created in the
Application_OnStart event and some additional Com components are also needed
such as Loader and Writer compoents, whose job is to populate the caches
woth the data and write the data that has been collected in the cache.

The Loader component is necessary and the Writer component is optional. To
gain a better insight into this issue, I would request you to please refer
to the following article :
http://msdn.microsoft.com/library/d...-us/csvr2002/htm/cs_sp_genpurposeobj_tcew.asp

Hope this helps.

Best Regards,
Mona [Grapecity]
 

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

Top