473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Dynamic WebProxy (Object) Creation Within C#

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!

Aug 3 '05 #1
1 3925
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/de...seobj_tcew.asp

Hope this helps.

Best Regards,
Mona [Grapecity]

"Jim Douglas" <ja***********@genesis-software.com> wrote in message
news:Mp********************@comcast.com...
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!

Aug 4 '05 #2

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

Similar topics

4
by: Leslaw Bieniasz | last post by:
Cracow, 20.10.2004 Hello, As far as I understand, the generic programming basically consists in using templates for achieving a static polymorphism of the various code fragments, and their...
3
by: vodafone | last post by:
Hy all I've a little problem. I need to write a dynamic page that render control according to validation status return from previous control validation status. To be clear, I've page that...
15
by: rwf_20 | last post by:
I just wanted to throw this up here in case anyone smarter than me has a suggestion/workaround: Problem: I have a classic producer/consumer system which accepts 'commands' from a socket and...
1
by: Jim Douglas | last post by:
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...
2
by: Sam Santiago | last post by:
I am using the WebProxy.GetDefaultProxy() function to read the IE settings, but it's returning an empty WebProxy object. Are there any known reasons why this is not reading the proxy settings in IE...
0
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
7
by: msdev | last post by:
Hello, I am creating my own webbrowser to learn VB .Net. I am stuck on an issue with regards to dynamically-created controls, in this case tabs on a tabcontrol and webbrowsers created within...
7
by: djc | last post by:
I see many ways to accomplish setting up proxy settings for a web request in the documentation but many of them are marked as obsolete. 1) What is the current and correct way to tell all my...
1
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.