Constructor parameter injection

May 26, 2013 at 7:58 AM
Hello,

Can customize AppStart_MefContribMVC3 to add custom exported values ?

I have this class
    [Export(typeof(IUserRepository))]
    public class UserRepository : GenericRepository<User>, IUserRepository
    {
        [ImportingConstructor]
        public UserRepository(string connectionString)
            : base(connectionString)
        {

        }
    }
}
how can I add this in AppStart_MefContribMVC3 ?
ComposeExportedValue("connectionString", "connection string value");
Thank you