What's the difference between interface interception and constructor Injection in asp.net unity?
I am lack of understanding DI with Unity
I am working on an old project and in unity.config, some like this,
<register type="ICRIC2012TrialUserService" mapTo="CRIC2012TrialUserService">
<lifetime type="perthread"/>
<interceptor type="InterfaceInterceptor"/>
<policyInjection/>
</register>
but some do not have
<interceptor type="InterfaceInterceptor"/>
but in project these class and interface work in same way, like this
private readonly IIncomingEstimateService _incomingEstimateService;
public ContractService(IIncomingEstimateService incomingEstimateService)
{
_incomingEstimateService = incomingEstimateService;
}