Here is my code for Unity configuration
="1.0"
<unity xmlns="http://schemas.microsoft.com/practices/2010/unity">
<typeAliases>
<typeAlias alias="IUserAccountService" type="FT.BLL.Contracts.IUserAccountService, Antony.BLL.Contracts" />
<typeAlias alias="UserAccountService" type="FT.BLL.Logic.UserAccountService, Antony.BLL.Logic" />
</typeAliases>
<container>
<register type="IUserAccountService" mapTo="UserAccountService" />
</container>
</unity>
And Bootstrapper.cs code
private static IUnityContainer BuildUnityContainer()
{
var section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
IUnityContainer container = new UnityContainer().LoadConfiguration(section);
return container;
}
This configuration setting expects both service projects need to be added in Web project. But I just want to add Interface reference only. not implementation layer reference.
Thanks. Any Help.