Re: [DOTNET] Automatically executing code

2002-05-28 Thread Robert J. van der Boon
On Sat, 25 May 2002 11:25:25 -0500, Reggie Burnett <[EMAIL PROTECTED]> wrote: >Yes I could do that. I'm sorry I'm being a bit stubborn on this issue >but I was really hoping to find a solution that would properly integrate >into the framework. The documentation really doesn't say where the >Reg

Re: [DOTNET] Automatically executing code

2002-05-25 Thread Federico Raggi
CC: Asunto: Re: [DOTNET] Automatically executing code Yes I could do that. I'm sorry I'm being a bit stubborn on this issue but I was really hoping to find a solution that would properly integrate into the framework. The

Re: [DOTNET] Automatically executing code

2002-05-25 Thread Reggie Burnett
quire the extra step by the user, but perhaps that is what MSFT was expecting. > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Federico Raggi > Sent: Saturday, May 25, 2002 11:12 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOT

Re: [DOTNET] Automatically executing code

2002-05-25 Thread Federico Raggi
tup routines like the old DllInit >stuff? > >What do you think about the attribute approach? > >Reggie > >> -Original Message- >> From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf >Of >> Federico Raggi >> Sent: Friday, May 24, 2002 11:03 AM

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Reggie Burnett
This code is for a library. I will not have access to the application config file. > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Marsh, Drew > Sent: Friday, May 24, 2002 10:13 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOT

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Reggie Burnett
ike the old DllInit stuff? What do you think about the attribute approach? Reggie > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Federico Raggi > Sent: Friday, May 24, 2002 11:03 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTN

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Federico Raggi
[mailto:[EMAIL PROTECTED]] > Sent: Friday, May 24, 2002 10:58 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Automatically executing code > > That's what I thought. I tried using a static constructor but you have > to explicitly create an object to get it to fire. I

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Marsh, Drew
Reggie Burnett [mailto:[EMAIL PROTECTED]] wrote: > Is there something at the assembly level or an attribute that > I could use to automatically fire some code at app startup? Reggie, You don't HAVE to register it at runtime, you can do it declaratively via the machine or application config file

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Richard Birkby
the assembly for it to be loaded. Richard > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Reggie Burnett > Sent: 24 May 2002 15:58 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Automatically executing code > > > That'

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Reggie Burnett
Behalf Of > Richard Birkby > Sent: Friday, May 24, 2002 4:21 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Automatically executing code > > Can you use a static constructor somewhere? > System.Net registers HTTP, HTTPS and FILE the first time the prefix list > is > use

Re: [DOTNET] Automatically executing code

2002-05-24 Thread Richard Birkby
ED]]On Behalf Of > Reggie Burnett > Sent: 24 May 2002 01:17 > To: [EMAIL PROTECTED] > Subject: [DOTNET] Automatically executing code > > > I'm implementing a webrequest/webresponse pair and the docs say that you > have to call WebRequest.RegisterPrefix to register your creat

[DOTNET] Automatically executing code

2002-05-23 Thread Reggie Burnett
I'm implementing a webrequest/webresponse pair and the docs say that you have to call WebRequest.RegisterPrefix to register your creator object with that prefix. What is the best way to make that call automatically without the user of the library needing to explicitly do that? Reggie You can re