Example #1
0
        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);
            }
        }
Example #2
0
 private static extern void interception_set_filter(InterceptionContext context, IntPtr predicate, InterceptionFilter filter);