Skip to content

Instantly share code, notes, and snippets.

@casper-rasmussen
Last active August 14, 2017 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casper-rasmussen/5b536cdf2df8015166592c25e107bad7 to your computer and use it in GitHub Desktop.
Save casper-rasmussen/5b536cdf2df8015166592c25e107bad7 to your computer and use it in GitHub Desktop.
// See Registration section for context of use.
IProxyGenerationHook methodHook = new SomeMethodsHook("MethodName");
container.For<INavigationManager>().DecorateAllWith((c, i) => proxyGenerator.CreateInterfaceProxyWithTarget(i, new ProxyGenerationOptions(methodHook), new ApplyMetricsTimingInterceptor(c.GetInstance<IMetricManager>())));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment