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
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
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
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
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
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
[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
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
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'
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
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
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
12 matches
Mail list logo