protected Adapter DoCreate(string adapterName, IEnumerable <KeyValuePair <string, object> > settings)
        {
            var adapter = MefHelper.Compose <Adapter>(adapterName);

            adapter.Setup(settings);
            return(adapter);
        }
Exemple #2
0
 private OptimizingDelegateFactory CreateOptimizingDelegateFactory()
 {
     return(MefHelper.GetAdjacentComponent <OptimizingDelegateFactory>(this.GetType()) ?? new DefaultOptimizingDelegateFactory());
 }