Skip to content

Instantly share code, notes, and snippets.

@mfloryan
Created June 29, 2011 10:55
Show Gist options
  • Select an option

  • Save mfloryan/1053638 to your computer and use it in GitHub Desktop.

Select an option

Save mfloryan/1053638 to your computer and use it in GitHub Desktop.
Unity Decorator Setup
unityContainer.RegisterType(typeof (Interface), typeof (ConcreteImplementation), "RealDeal");
unityContainer.RegisterType(typeof (Interface), typeof (DecoratedImplementation), new InjectionConstructor(unityContainer.Resolve<Interface>("RealDeal")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment