public InterceptorAspectBuilder( Type interceptorType, InterceptType interceptType, string configString, int priority) { _interceptorType = interceptorType; _interceptType = interceptType; _configString = configString; _priority = priority; }
public InterceptorAspectBuilder( Type interceptorType, InterceptType interceptType, string configString, int priority, bool localInterceptor) { _interceptorType = interceptorType; _interceptType = interceptType; _configString = configString; _priority = priority; _localInterceptor = localInterceptor; }
public InterceptorAttribute( Type interceptorType, InterceptType interceptType, string configString, int priority) { if (interceptorType == null && interceptType != 0) throw new ArgumentNullException("interceptorType"); _interceptorType = interceptorType; _interceptType = interceptType; _configString = configString; _priority = priority; }
/// <summary> /// /// </summary> /// <param name="routeName"></param> /// <param name="assemblyCollection"></param> /// <param name="ignoredAssemblyCollection"></param> /// <param name="ignoreAssembly"></param> /// <param name="interceptType"></param> /// <param name="defaultDelimiter"></param> /// <param name="customRedirect"> </param> /// <param name="acceptEmptyRoute"> </param> /// <param name="urlType"> </param> public InterceptRoute(String routeName = null, String assemblyCollection = null, String ignoredAssemblyCollection = null, Boolean ignoreAssembly = true, InterceptType interceptType = InterceptType.Ajax, String defaultDelimiter = ",", Func <string, RouteType> customRedirect = null, bool acceptEmptyRoute = false, UrlType urlType = UrlType.Route) { RouteName = routeName; AssemblyCollection = assemblyCollection; IgnoredAssemblyCollection = ignoredAssemblyCollection; IgnoreAssembly = ignoreAssembly; InterceptType = interceptType; DefaultDelimiter = defaultDelimiter; CustomRedirect = customRedirect; AcceptEmptyRoute = acceptEmptyRoute; UrlType = urlType; }
public InterceptorAttribute( Type interceptorType, InterceptType interceptType, string configString, int priority) { if (interceptorType == null && interceptType != 0) { throw new ArgumentNullException("interceptorType"); } _interceptorType = interceptorType; _interceptType = interceptType; _configString = configString; _priority = priority; }
public InterceptorAttribute( Type?interceptorType, InterceptType interceptType, string?configString, int priority, bool localInterceptor) { if (interceptorType == null && interceptType != 0) { throw new ArgumentNullException(nameof(interceptorType)); } InterceptorType = interceptorType; InterceptType = interceptType; ConfigString = configString; Priority = priority; LocalInterceptor = localInterceptor; }
public InterceptorAttribute( Type interceptorType, InterceptType interceptType, string configString, int priority) : this(interceptorType, interceptType, configString, priority, false) { }
public InterceptorAttribute(Type interceptorType, InterceptType interceptType, string parameters) : this(interceptorType, interceptType, parameters, TypeBuilderConsts.Priority.Normal) { }
public NoInterceptionAttribute(Type interceptorType, InterceptType interceptType) : base(interceptorType, interceptType) { }
public InterceptorAttribute( Type?interceptorType, InterceptType interceptType, string?configString, int priority) : this(interceptorType, interceptType, configString, priority, false) { }
public InterceptorAttribute(Type?interceptorType, InterceptType interceptType, int priority) : this(interceptorType, interceptType, null, priority) { }
protected InterceptHandlerAttribute(InterceptType interceptType) { InterceptType = interceptType; }
/// <summary> /// 调用拦截器。 /// </summary> /// <param name="emitter"></param> /// <param name="interceptMethod"></param> /// <param name="interceptType"></param> /// <returns></returns> private static EmitHelper CallInterceptors(this EmitHelper emitter, DynamicMethodBuilder interceptMethod, InterceptType interceptType) { return(emitter .ldarg_0 .ldloc(STACK_INTERCEPTOR_LIST_INDEX) .ldloc(STACK_CALLINFO_INDEX) .ldc_i4((int)interceptType) .call(interceptMethod.MethodBuilder)); }
public InterceptorAttribute(Type?interceptorType, InterceptType interceptType) : this(interceptorType, interceptType, null, TypeBuilderConsts.Priority.Normal) { }
public InterceptorAttribute(Type?interceptorType, InterceptType interceptType, string parameters) : this(interceptorType, interceptType, parameters, TypeBuilderConsts.Priority.Normal) { }
public NoInterceptionAspectBuilder(Type interceptorType, InterceptType interceptType) : base(interceptorType, interceptType, null, TypeBuilderConsts.Priority.Normal) { }
public InterceptorAttribute(Type interceptorType, InterceptType interceptType) : this(interceptorType, interceptType, null, TypeBuilderConsts.Priority.Normal) { }
public InterceptorAttribute(Type interceptorType, InterceptType interceptType, int priority) : this(interceptorType, interceptType, null, priority) { }
public NoInterceptionAspectBuilder(Type interceptorType, InterceptType interceptType) : base(interceptorType, interceptType, null, TypeBuilderConsts.Priority.Normal, false) { }
/// <summary> /// /// </summary> /// <param name="routeName"></param> /// <param name="assemblyCollection"></param> /// <param name="ignoredAssemblyCollection"></param> /// <param name="ignoreAssembly"></param> /// <param name="interceptType"></param> /// <param name="defaultDelimiter"></param> /// <param name="customRedirect"></param> /// <param name="urlType"> </param> /// <param name="acceptEmptyRoute"> </param> /// <returns></returns> public static InterceptRoute CreateRoute(String routeName = null, String assemblyCollection = null, String ignoredAssemblyCollection = null, Boolean ignoreAssembly = true, InterceptType interceptType = InterceptType.Ajax, String defaultDelimiter = ",", Func <string, RouteType> customRedirect = null, bool acceptEmptyRoute = false, UrlType urlType = UrlType.Route) { return(new InterceptRoute(routeName, assemblyCollection, ignoredAssemblyCollection, ignoreAssembly, interceptType, defaultDelimiter, customRedirect, acceptEmptyRoute, urlType)); }