Aspect Weaving at Assembly Loadtime

Is PostSharp missing a great feature? How would you like the next release to look like? Share your thoughts, and we will make them happen!

Aspect Weaving at Assembly Loadtime

Postby ThomasDarimont on Mon Feb 11, 2008 5:55 pm

Hi,

Aspect Weaving at assembly Loadtime would enable the dynamic deployment of Aspects.

Best regards,
Tom
ThomasDarimont
 
Posts: 2
Joined: Mon Feb 11, 2008 5:50 pm
Full Name: Thomas Darimont
Company: NoName Inc.

Re: Aspect Weaving at Assembly Loadtime

Postby gfraiteur on Mon Feb 11, 2008 6:02 pm

Load-time weaving is supported by the Core, but there is no off-the-shelf solution. The current interface is designed for application servers hosting the CLR.

Actually, the clean way to do load-time weaving is to host the CLR and to implement the "ProvideAssembly" method. It is possible (yet non trivial) to host the CLR for standalone applications, but there are many scenarios in which you cannot: ASP.NET, COM-activated assemblies, ...

But I'm already working on a bootstrapper that would at least allow to test how it may work in "best case" scenarios.

BTW, the sample PostSharp.Samples.Host demonstrates how to perform load-time weaving. It works in limited cases (sinces it performs assembly renaming).

Gael
Gael Fraiteur, project leader
got good support? consider donating to the project.
gfraiteur
Site Admin
 
Posts: 673
Joined: Tue Dec 18, 2007 3:09 pm
Full Name: Gael Fraiteur
Company: postsharp.org


Return to Feature Proposal


cron