Guest User

Untitled

a guest
Jan 12th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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());
Add Comment
Please, Sign In to add comment