Language: C#
No Title
var conventions = new ConventionsCatalog(); conventions.Configure(c => { c.CreateParts(t => t.Namespace.Contains("Extension") && t.ImplementsInterface(typeof(IFoo)), a => { a.Import<IFoo>(f => f.Calculate(0, 0)).As<IFoo>().AsRecomposable(); a.Import<IFoo>(f => f.Calculate(1, 2)).As<IFoo>(); }); c.CreateParts(t => t.ImplementsInterface(typeof(IFoo)), a => { a.Import<IFoo>(f => f.Calculate(0, 0)).As<IFoo>(); a.Import<IFoo>(f => f.Calculate(1, 2)).As<IFoo>(); }); });
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

