.net - Microsoft fakes - shims without ShimsContext -



.net - Microsoft fakes - shims without ShimsContext -

i'm trying hook methods of external .net programme , msft fakes framework seems create easy using shims.

here's example: let's game uses library includes chat class addmessage(msg) method. want modify method in such way function of mine gets called argument. illustration modify msg , homecoming original function modified msg argument. next time gets printed chat, function executed , modified string displayed in chatbox. modifying il asm of dll itself, that's not sustainable larger modifications or if target updates.

my problem since fakes made used in unit testing environment, shims work in shimscontext - prevent people overriding methods outside of testing cases, that's want do.

is possible 'globally' overwrite methods shims or framework locked downwards in regard? if it's locked down, there frameworks might help me accomplish goal?

.net instrumentation microsoft-fakes shim

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -