protected Adapter DoCreate(string adapterName, IEnumerable <KeyValuePair <string, object> > settings) { var adapter = MefHelper.Compose <Adapter>(adapterName); adapter.Setup(settings); return(adapter); }
private OptimizingDelegateFactory CreateOptimizingDelegateFactory() { return(MefHelper.GetAdjacentComponent <OptimizingDelegateFactory>(this.GetType()) ?? new DefaultOptimizingDelegateFactory()); }