Aspect Weaving at Assembly Loadtime
2 posts • Page 1 of 1
Aspect Weaving at Assembly Loadtime
Hi,
Aspect Weaving at assembly Loadtime would enable the dynamic deployment of Aspects.
Best regards,
Tom
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
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
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.
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
2 posts • Page 1 of 1