public static void CreateFactory <TPluginType>(this CreatePluginFamilyExpression <TPluginType> expression) where TPluginType : class { var callback = CreateFactoryCallback <TPluginType>(); expression.Use(callback); }
public static void CreateFactory <TPluginType>(this CreatePluginFamilyExpression <TPluginType> expression) where TPluginType : class { var callback = CreateFactoryCallback <TPluginType>(); expression.Use("AutoFactory builder for " + typeof(TPluginType).GetFullName(), callback); }
public static void CreateFactory <PLUGINTYPE>(this CreatePluginFamilyExpression <PLUGINTYPE> expression) where PLUGINTYPE : class { var callback = CreateFactoryCallback <PLUGINTYPE>(); expression.Use(callback); }
public static void CreateFactory <TPluginType>(this CreatePluginFamilyExpression <TPluginType> expression, IAutoFactoryConventionProvider conventionProvider) where TPluginType : class { var callback = CreateFactoryCallback <TPluginType>(conventionProvider); expression.Use(GetDescription <TPluginType>(), callback); }
public void Empty() { var use = @for.Use(() => Activator.CreateInstance <TImpl>()); if (instanceName != null) { use.Named(instanceName); } this.setLifeTime(this.lifetime, use); }
public StructureMapMapping(Registry registry, Func <IServiceLocator, TInterface> function) { _for = registry.For <TInterface>(); _for.Use(() => function(ServiceLocator.Current)); }
public StructureMapMapping(Registry registry, Func <TInterface> function) { _for = registry.For <TInterface>(); _for.Use(function); }
public StructureMapMapping(Registry registry) { _for = registry.For <TInterface>(); _mapping = _for.Use <TImplementation>(); }