Language: C#
Default contract name and type identity spike
public class TestRegistry { public TestRegistry() { Defaults(x => { x.Type<Foo>().Contract("Andreas").Identity<IWidget>(); x.Type<Bar>().Contract("Piotr").Identity<IUnity>(); }); Part() .ForType<InjectedHost>() .ExportType() .ImportConstructor() .MakeShared(); Part() .ForTypesImplementing<IWidget>() .ExportTypeAs<IWidget>() .MakeShared(); } }
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

