コード例 #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);
            }
        }
コード例 #2
0
ファイル: LibInterception.cs プロジェクト: TETYYS/socon
 private static extern void interception_set_filter(InterceptionContext context, IntPtr predicate, InterceptionFilter filter);