private static void AttachTestControllerDescriptorsForAllControllers() { var allControllerTypes = from assembly in AppDomain.CurrentDomain.GetAssemblies() from type in assembly.GetTypes() where typeof(IController).IsAssignableFrom(type) select type; foreach (var controllerType in allControllerTypes) { InterceptionFilter.AssociateWithControllerType(controllerType); } }
private static extern void interception_set_filter(InterceptionContext context, IntPtr predicate, InterceptionFilter filter);