Configure IStaticFactoryConfiguration in config file

Feb 20, 2009 at 6:48 PM
Hi,

Can I configure IStaticFactoryConfiguration using the config file? I want to do the following but using the config file. 

            container.AddNewExtension<StaticFactoryExtension>();
            IStaticFactoryConfiguration config = container.Configure<IStaticFactoryConfiguration>();
            config.RegisterFactory<IProductService>(ProductServiceFactory.Create);

where:

    public interface IProductService
    {
        string GetCount();
    }

    public class ProductService : IProductService
    {
        public string GetCount()
        {
            return "1";
        }
    }

    public class ProductServiceFactory
    {
        public static object Create(IUnityContainer c)
        {
            return new ProductService();
        }
    }

Regards,

Sylvain
Feb 20, 2009 at 9:17 PM
No, that's not supported at this time.