daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Jan 12th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to append injectionMembers after registration in UnityContainer?
  2. container.RegisterType<IService, Implementation>(name, manager,
  3.     new InjectionConstructor(...));
  4.    
  5. container.Configure<InjectedMembers>().
  6.     ConfigureInjectionFor<Implementation>(new InterceptionBehavior());
  7.    
  8. container.RegisterType(null, typeof(Implementation), new InterceptionBehavior());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top