Re: Intercept CLR Calls in an application

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Tony Valenti" <TonyValenti@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F856AE56-BC2E-48CB-93C5-64CCE64152AC@xxxxxxxxxxxxxxxx
> Is there any way to write a class that wraps around the CLR? Basically we
> have an ASP.NET application that has had some core DLL's renamed (the
> product
> has been renamed) and we're wanting to still preserve compatibility with
> customer developed plugins.
>
> For example, previously, we had a DLL named "BusinessManager.Data.dll",
> what
> we're wanting to do is basically intercept the call to load that DLL and
> instead redirect it to "Portfolio.Data.dll" (all we're doing is replacing
> BusinessManager with Portfolio). Does the .NET framework support this?
> Is
> there any way we could accomplish that by throwing an entry into the
> web.config file?
>


Why don't you just provide a new implementation of
"BusinessManager.Data.dll" which is a facade for "Portfolio.Data.dll"?

David


.