.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

c# - ASP.NET MVC Sequence contains no matching element -

java - Parsing XML, skip certain tags -

rest - How to invalidate user session on inactivity in a stateless server? -