private static void RegisterInterceptors(IInitializationExpression exp) { var interceptorTypes = from t in typeof(IoC).Assembly.GetTypes() where typeof(TypeInterceptor).IsAssignableFrom(t) select t; foreach (var type in interceptorTypes) { exp.RegisterInterceptor(Activator.CreateInstance(type) as TypeInterceptor); } }