PostWeaver

43 views
Skip to first unread message

Sebastien Gollion

unread,
Mar 12, 2010, 7:19:07 AM3/12/10
to LinFu.Framework
Hello,

thanks for your project.

I'm using PostWeaver on a big project.

Before process the binary is 2Mo.
After the PostWeaving Assembly, the binary is growing up to 8Mo and
the time spent is around 10 minutes.

Is it possible to add a filter on the command line/in a file to filter
classes and methods that could be used later ?

Best regards,
Sébastien.

Philip Laureano

unread,
Mar 12, 2010, 8:19:31 AM3/12/10
to linfufr...@googlegroups.com
Hi Sébastien,

What I can do is add some sort of interface like ITypeFilter or IMethodBodyFilter/IMethodCallFilter and then you can just "drop in" your custom filter implementation DLL in the target directory and the PostWeaver will be able to automatically detect it and apply it once it runs. Would this work fine for what you're looking to do?



--
You received this message because you are subscribed to the Google Groups "LinFu.Framework" group.
To post to this group, send email to linfufr...@googlegroups.com.
To unsubscribe from this group, send email to linfuframewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/linfuframework?hl=en.


Philip_L

unread,
Mar 13, 2010, 3:33:32 AM3/13/10
to LinFu.Framework
Sébastien,

I've modified PostWeaver.exe to support the following pluggable filter
interfaces:

IFieldFilter
ITypeFilter
IMethodFilter
IMethodCallFilter
INewInstanceFilter

All you need to do is create implementations for each filter interface
and place them in a separate assembly DLL named
YourProjectName.Filters.dll. Once you've done that, all you need to do
is make sure that your custom filter DLL is in the same directory as
the assembly that you will be modifying for interception, and
PostWeaver.exe will automatically find those filters and inject the
hooks into the types that you select.

You can find the latest changes to LinFu.AOP at this link:
http://github.com/philiplaureano/LinFu

I hope that helps.

Regards,

Philip Laureano

Sebastien Gollion

unread,
Apr 22, 2010, 6:59:12 AM4/22/10
to LinFu.Framework
Hi,

thank you for your help.

Regards,
Sébastien.
Reply all
Reply to author
Forward
0 new messages