private IInterceptor GetInterceptor <T>() where T : BaseModel { Type type = typeof(T); if (!_interceptors.ContainsKey(type)) { _interceptors[type] = new InstanceProxyHelper <T>(); } return(_interceptors[type]); }
private IInterceptor GetInterceptor <T>() where T : BaseModel { Type type = typeof(T); var interceptor = InterceptorRepository.Get(type); if (interceptor == null) { interceptor = new InstanceProxyHelper <T>(); InterceptorRepository.Add(type, interceptor); } return(interceptor); }